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 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 |
---|---|
26 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
33 | |
13 | |
12 | |
9 | |
7 |