The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi
I need to create a DAX query that will filter based on a column value, unless the user enters all, which will effectivly make the filter not filter at all
Solved! Go to Solution.
I worked this out another way, using CONCATENATEX, with a distinct to just add all distinct values
I worked this out another way, using CONCATENATEX, with a distinct to just add all distinct values
The value would be put into an SSRS report (paginated) parameter, so it would be querying a Power BI dataset
Where would the user enter "all" in a DAX query?
Or are you talking a slicer? If that, then your DAX just does the calc. The slicer will automatically filter based on any specific selection or no selection.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingUser | Count |
---|---|
27 | |
10 | |
8 | |
7 | |
5 |
User | Count |
---|---|
33 | |
13 | |
11 | |
9 | |
8 |