Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
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.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.