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

Use Text Measure as Legend

Hi, 

 

I have seen similar questions, but they do not seem to apply to my context. 

 

I would like to see a 100% stacked chart that shows the percentage of volume sales within the category for SKUs that are sold "above" or "below" the break-even price.

 

I have a measure: Break-Even = IF(data[Profit]>0,"Above","Below"). I understand that I may need to create an unlinked table, however the existing solutions have not worked for me. 

 

It is worth noting that I need to be able to filter the time, retailer, state columns to get a view of the break-down in different context.   

 

Any help would be greatly appreciated. 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@liam_c , if profit is measure then this will be measure and will not work as legend

 

IF(data[Profit]>0,"Above","Below")

 

You need to have a table with the "above" and "below" values and join it back with this measure with = join

 

refer my video on same, use equal to


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...

 

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@liam_c , if profit is measure then this will be measure and will not work as legend

 

IF(data[Profit]>0,"Above","Below")

 

You need to have a table with the "above" and "below" values and join it back with this measure with = join

 

refer my video on same, use equal to


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...

 

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.