Dynamic M parameters in Power Query isn’t anything new. However, Patrick was challenged with using them to allow for multi-select and “select all” with a slicer in a Power BI report. Will he succeed?

Dynamic M query parameters in Power BI Desktop
https://learn.microsoft.com/power-bi/connect-data/desktop-dynamic-m-query-parameters