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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
ristyagi
Regular Visitor

Custom Slicer behavior.

 I have a single table with DateMonth and DateYear, I need to use slicer to filter visuals like below:

SLicer 1 will have all the months listed (jan to Dec), slicer 2 will have two values, Current and YTD.

Scinario 1: slicer 1= April, Slicer 2= Current, data displayed will only be of april month, example april 2018

Scinario 2: slicer 1= April, Slicer 2= YTD, data displayed will be of Jan 2018 to april 2018.

 

How can I implement this?

 

4 REPLIES 4
quentin_vigne
Solution Sage
Solution Sage

Phil_Seamark
Microsoft Employee
Microsoft Employee

HI @ristyagi

 

I have attached a PBIX file that shows how you can use a dynamic measure based on a slicer.

 

Basically, don't create a relationship between the slicer and the fact table.

 

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

hi @Phil_Seamark,

 

Thanks for the quick response, just one thing to ask here, 

in this solution we are getting the sum from table in a separate measure.

 

but in mu existing dat aI have multiple cloumns present in the table , whcih are used in nbullet charts, I simply need my charts to get filtered based on these combinations of slicers, how will that be possible ?

Anonymous
Not applicable

@ristyagi,

When you drag fields of your table and the measure into a chart , the chart will be filtered according to the selection in the two slicers.

Regards,

Lydia

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.