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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
forti4040
Helper III
Helper III

Stacked Column Chart - Percent of Constant Line

Hello All,

I have a stacked column chart that spans several months across the X axis. I've also got a constant line I've added with a "max" project loading. I'd like to automatically label each column somehow with the percentage loading vs the constant line. Is this possible? Example below where I've manually labeled one column, but idea would be to have each column labeled. 

 

The 37% reflects how far over the constant line that month is loaded. 

(37% = (144 / 105) - 1)

 

forti4040_0-1654112943378.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@forti4040 , You can create a measure

 

M1=  37

or

M1 = calculate(Sum(Table[Value])/Sum(Table[Value2]) , all()) 

 

and use that as a line in stacked line visual and remove the secondary axis

 

https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-combo-chart

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@forti4040 , You can create a measure

 

M1=  37

or

M1 = calculate(Sum(Table[Value])/Sum(Table[Value2]) , all()) 

 

and use that as a line in stacked line visual and remove the secondary axis

 

https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-combo-chart

@amitchandak , 
That did the trick! Thank you for the quick assistance

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.