Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
Trying to see how to write the query implement if the filter has value selected or if its not selected (meaning ALL is selected) then how to apply or not apply the filter.
Example
Solved! Go to Solution.
@csinusa , You can not use slicer value in calculated table.
If this a var of meausre you can try like
TREATAS ( allselected('Date'[Calendar Year]), 'Date'[Calendar Year] )
Actually I m creating paginated version of report using powebi desktop dataset and using DAX queries to get data. My desktop report has no issue selecting/ignoring parameters from dropdownlist but my paginated report makes me select values in all parameters.
So if I have customer / locations / sites , it is possible the user only want to run the paginated report by customer but if decided to run for one location, then he will select location as parameter otherwise we want to pass as null or all for both location and sites parameter.
Thats what the issue how to set the filters in DAX when passed and not set when not passed.
The customer, location and sites are all in dropdownlist
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
11 | |
9 | |
6 |