The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 |
---|---|
14 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
28 | |
19 | |
14 | |
8 | |
5 |