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,
I have a table, for illustration purpose, as below:
Product | Color | SalesDate |
Truck | Blue | 30-12-2023 |
Car | Green | 31-12-2023 |
Car | Red | 01-01-2024 |
Car | Blue | 02-01-2024 |
Scooter | Blue | 03-01-2024 |
Scooter | Green | 04-01-2024 |
My first slicer, "Product" has products that are sold in current month. So, for Jan '24, the values are 'Car' and 'Scooter'.
My second slicer, 'Color', should include the color specific for the selected product and date criteria. So, for product 'Car' and current month, my second slicer should show only 'red' and 'blue'. For product 'Scooter' and current month, my second slicer should show 'blue' and 'green'.
If there is no date criteria, my second slicer filters, based on value of the product from first slicer. How can I, using Dax, make the second slicer values, dependent on selected product from first slicer and 'date' criteria?
Solved! Go to Solution.
Hi,
I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file whether it suits your requirement.
Hi,
I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file whether it suits your requirement.
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
10 | |
6 |