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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Dynamic Measure using slicer and selected value

Hello All, I am trying to create a measure which will show me country level, facility level and Region level numbers depending on slicer selection. I tried using selected value and calculate function but i am not getting the expected results when i try selecting multiple facilites within same country or different country.

 

When i select multiple facilities in same country I am trying to get the value corresponding to facility = All in the country it falls under

 

Similary when i select multiple facilites in different country I am trying to see value corresponding to country = All (region number)

 

I am attaching the link to pbix and excel

 

https://drive.google.com/drive/folders/1AFPDjIqbpv-gDpWKseUeQLuPJ1Pz0hbi?usp=sharing

 

Can anyone help me with this

3 REPLIES 3
Anonymous
Not applicable

@Anonymous 

Not sure what do you want to achieve after seeing your description and pbix.

 

1. I doubt why do you have "All" as a row value, and I don't see any Region column in your pbix as you mentioned you something related to Region number. 

 

2. "I am trying to  get the value corresponding to facility = All in the country it falls under". I don't get that sentence, you have already filtered out the "All" value from the country and fac slicer, and now why do you what it to = ALL, is that the case? or I get it wrong?

 

Overall, I don't think that sample pbix is correctly created, can you update and elaborate?

 

Paul Zheng _ Community Support Team
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 , if want change axis or row or group by

refer


Dynamically change chart axis in Power BI
https://www.youtube.com/watch?v=6jeSIRpjv0M

 

For measure, slicer refer

https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slicer-parameter-table-pattern

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

@amitchandak : Thanks for your reply..I went through the link but I am trying to achieve something different. The slicers are based on values in the table and based on the selection I am trying to fetch different values from the same table...not sure if it can be done

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.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors