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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Line chart showing values as a % of two comparative points instead of whole chart

Hellooo!

 

I can't share my dataset, but I've made a line chart that shows the past 12 months and the value is split by a legend that shows Red product and Blue products.

 

I tried to make the values on the line chart a % but it shows it as a % of all the points on the chart (% of grand total). Whereas I want to show the % as Red vs Blue products for each month. Is this possible?

 

For example,

 

Red 10%       Red 25%         Red 60%

Blue 90%       Blue 75%       Blue 40%

Jan 20            Feb 20           March 20

 

 

I hope this makes sense?

1 ACCEPTED SOLUTION
negi007
Community Champion
Community Champion

@Anonymous  I think there is no direct way of creating Stack line chart in %. I suggest you to do the following

 

1. Create two measures 

Blue% = CALCULATE(SUM('Line Chart%'[Value]),'Line Chart%'[Color]="Blue")/CALCULATE(SUM('Line Chart%'[Value]),ALLSELECTED('Line Chart%'[Value]))
Red% = CALCULATE(SUM('Line Chart%'[Value]),'Line Chart%'[Color]="Red")/CALCULATE(SUM('Line Chart%'[Value]),ALLSELECTED('Line Chart%'[Value]))
 
2. Then you plot your measures on the chart as show below
 line Chart%.PNG
I hope this solution helps you



Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

View solution in original post

4 REPLIES 4
negi007
Community Champion
Community Champion

@Anonymous  I think there is no direct way of creating Stack line chart in %. I suggest you to do the following

 

1. Create two measures 

Blue% = CALCULATE(SUM('Line Chart%'[Value]),'Line Chart%'[Color]="Blue")/CALCULATE(SUM('Line Chart%'[Value]),ALLSELECTED('Line Chart%'[Value]))
Red% = CALCULATE(SUM('Line Chart%'[Value]),'Line Chart%'[Color]="Red")/CALCULATE(SUM('Line Chart%'[Value]),ALLSELECTED('Line Chart%'[Value]))
 
2. Then you plot your measures on the chart as show below
 line Chart%.PNG
I hope this solution helps you



Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Anonymous
Not applicable

@negi007 Thank you that worked!!

Fowmy
Super User
Super User

@Anonymous 

You can add this measure, adjust the names as per your model

Measure 2 = 

VAR _TOTAL = 
    CALCULATE(
        SUM(Table5[Value]),
       ALLSELECTED(Table5[CATEFORY])
    )

RETURN
DIVIDE(
    SUM(Table5[Value]),
    _TOTAL
)




You can also use 100% stacked Column Visual.

Fowmy_0-1599833815448.png


________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

 



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

amitchandak
Super User
Super User

@Anonymous , something like this

 

divide(calculate([measure]), calculate([measure],allexcept(Table,Table[Month-year])))

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.