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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Slicer selection filter date

Hi Team,

 

I have Markets slicer like Apac, EMA , while selecting slicer --> I need Apac it show 2015 and 2016 year, if EMA then show all date.

 

Thanks,

Kali

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

According to your description, I suggest you create a flag measure:

 

Flag = SWITCH(SELECTEDVALUE('Table'[Market]),"Apac",IF(YEAR(MAX('Table'[Date])) in {2015,2016},1),"EMA",1)

 

And then apply it to visual-filter pane ,set as "is 1" , the final output is shown below:

Eyelyn9_0-1630305041265.png

Eyelyn9_1-1630305055645.png

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,

 

According to your description, I suggest you create a flag measure:

 

Flag = SWITCH(SELECTEDVALUE('Table'[Market]),"Apac",IF(YEAR(MAX('Table'[Date])) in {2015,2016},1),"EMA",1)

 

And then apply it to visual-filter pane ,set as "is 1" , the final output is shown below:

Eyelyn9_0-1630305041265.png

Eyelyn9_1-1630305055645.png

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , Do you have data for Apac for year <> 2017 ?

Check there is no other filter on page

 

or

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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
Anonymous
Not applicable

Hi @amitchandak ,

 

sorry just now modified my query, please read now.

 

Thanks,

KV's

@Anonymous , seem like you want to change axis of the visual. You need bookmarks for that

bookmark -https://blog.crossjoin.co.uk/2018/04/20/dynamically-changing-a-chart-axis-in-power-bi-using-bookmarks-and-buttons/

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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors