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
chavaharika
Frequent Visitor

Dynamic slicer selection wrt KPI & Visual

Hi all,

I have month & Tag as filters.If i select KPI then the filters should be interacted only with KPI's but not with visuals and if i select Visual then filters should interact only with Visuals but not with KPI's.Please help me out.

 

production.PNG

1 ACCEPTED SOLUTION

hi  @chavaharika 

Just use “all” functions in DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT

But i would like to suggest you use my second solution

 

Regards,

Lin

Community Support Team _ Lin
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

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

Hi @chavaharika 

For your case, there are two workaround for you refer to:

1. If there no month & Tag  fields in other visuals.

You could use a separate table that only contains KPI /Visual, and use it as a slicer.

Then for each measure, you could use a IF conditional in it.

For example:

New Measure = IF(SELECTEDVALUE('separate table'[Column])="KPI", CALCULATE([Old measure],ALL(Visual's fields)) ,

IF(SELECTEDVALUE('separate table'[Column])="Visual", CALCULATE([Old measure],ALL(KPI's fields)) ))

 

2. I think the best way is use Bookmark in power bi.

You just set two status of this page, and use Edit Interaction to contorl the inteaction between the visuals,

https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive

https://docs.microsoft.com/en-us/power-bi/service-reports-visual-interactions

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-lili6-msft ,

Thanks for Reply.Can i have sample report regarding DAX.

hi  @chavaharika 

Just use “all” functions in DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT

But i would like to suggest you use my second solution

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.