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
tcirkovsky
New Member

Measures in chart label

Hi guys,

 

 

recently on FB in World of Power BI group was published question about getting measure values into the Label in charts.1488056_10205203113293217_9154005076153817390_n.jpg

Here is my solution, but its not perfect and maybe someone will find better way or some improvment of my solution. But i hope it will help to someone.

 

  1. Create new measure as "CreatedMeasure" (in dimension table dim_Colors) which calculates required value for every color CreatedMeasure = sum(Facts[Value])
  2. Create new column in dimension table dim_Colors[Color_name] & " (" & [CreatedMeasure] & ")"
  3. Use this new column as Label in chart.

 

Bez názvu.png

 

Issue:

  • Filters doesn't work on values in Label:/  (But maybe someone knows DAX well unlike me and can create better query)

 

PS: Bar chart would be better!!^^

2 REPLIES 2
greggyb
Resident Rockstar
Resident Rockstar

Anything defined as a calculated column will not be dynamic at report viewing time, and will only change during dataset processing.

 

I am not familiar enough with the custom visualization API to say whether this is possible in general, but I can tell you this isn't doable with the stock visualizations.

Yea I am aware of that:(

 

This solution is applicable at least in static report or its part if customer needs something like that.

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
Top Kudoed Authors