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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
schoden
Post Partisan
Post Partisan

slicer selection

Hi All, 

Please help.

 

I want to defualt slicer selection that will filter many measures which i have put in various visuals in the page.

 

slicer [dateselection]= should filter measure 1, measure 2, measure 3 , measure 4 (are all calculations)

if none selected , default to current month. 

 

my dax is something like:  if(hasonevalue(slicer[dateselection]), measure 1, measure 2, measure 3, measure 4 ), "current month"

 

but its not working.

2 REPLIES 2
amitchandak
Super User
Super User

@schoden,

Please find the example of Measure slicer

https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/50...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 

Hi thanks for reply but I want something like:

 

Since Date in slicer is wide range(user can select any ) I cant go on defining for each measures. Just on "Current Month", I can set it

 

Final Value 1 =
IF(HASONEFILTER(Table[CalcType])
        "Current Month", [Measure 1 ], [Measure 2 ],[Measure 3]
    ),
   "Current Month"
)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.