Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Karthik50
Frequent Visitor

Slicer - Based on first slicer, show related values (meeting criteria) in second slicer

Hi,

I have a table, for illustration purpose, as below:

ProductColorSalesDate
TruckBlue30-12-2023
CarGreen31-12-2023
CarRed01-01-2024
CarBlue02-01-2024
ScooterBlue03-01-2024
ScooterGreen04-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?



1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

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.

 

Jihwan_Kim_0-1706344309098.png

 

Jihwan_Kim_1-1706344550679.png

 

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.


Go to My LinkedIn Page


View solution in original post

1 REPLY 1
Jihwan_Kim
Super User
Super User

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.

 

Jihwan_Kim_0-1706344309098.png

 

Jihwan_Kim_1-1706344550679.png

 

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.


Go to My LinkedIn Page


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.