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

slicers based on measure

Hi all, 

 

I had to modify the content of a column in a table .Used a calculated measure as below

Mod_Country=if(max(Country)="US","USA",Country)

Now I need to show the Mod_Country as a slicer so the user can select Countries. For some reason Power BI is not accepting measures as part of Slicer Categories, whereas,  I can achieve required result if I used a Calculated Column for Mod_Country though.

 

Is this an expected behaviour?

1 ACCEPTED SOLUTION
v-sihou-msft
Employee
Employee

@bibinbastian

 

Yes, this is expected behavior. You must populate a list of values into a slicer for selection. So it's not possbile to support putting measure into a slicer. A measure is a formula that the calculation is always aggregated, it need to be sliced so that you can get corresponding result for each entry. 

 

In this scenario, you should always use a calculated column to achieve your requirement.

 

Regards,

View solution in original post

2 REPLIES 2
v-sihou-msft
Employee
Employee

@bibinbastian

 

Yes, this is expected behavior. You must populate a list of values into a slicer for selection. So it's not possbile to support putting measure into a slicer. A measure is a formula that the calculation is always aggregated, it need to be sliced so that you can get corresponding result for each entry. 

 

In this scenario, you should always use a calculated column to achieve your requirement.

 

Regards,

TomMartens
Super User
Super User

Hey,

 

currently measures are not supported on sliceres, so yes this is an expected behavior.

 

This may change in one of the future releases, but for now I'm not aware of an ETA.

 

Regards



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

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.