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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Donia12215
Frequent Visitor

Line chart - line for total

I have line chart with % forecast variances for three programs and I would like to add % variance for all organisation. Forecast variances are measures based on forecasted values and actuals. Each programs have several units and I want to keep in dinamic. Below example is just to picture problem as I cannot publish actual companie's data. Do you think adding forecast variance line for all organisation is possible?

 

Forecast var = SUM('Fact data'[actual])-SUM('Fact data'[forecast])
Forecast var % = DIVIDE([Forecast var],SUM('Fact data'[forecast]))
 
Donia12215_0-1651657543949.pngDonia12215_1-1651657845770.png

 

 

 
1 ACCEPTED SOLUTION
Donia12215
Frequent Visitor

I found solution by changing approach. Addidng it here as it might be helpfull. I created separate measures for each program and then created line chart with no legend but with four measures in values.

 

X Forecast var % = CALCULATE([Forecast var %], Programs[Program]="X")

Y Forecast var % = CALCULATE([Forecast var %], Programs[Program]="Y")

Z Forecast var % = CALCULATE([Forecast var %], Programs[Program]="Z")

 

Values in line chart:
Forecast var %
X Forecast var %
Y Forecast var %
Z Forecast var %

 

 

View solution in original post

3 REPLIES 3
Donia12215
Frequent Visitor

I found solution by changing approach. Addidng it here as it might be helpfull. I created separate measures for each program and then created line chart with no legend but with four measures in values.

 

X Forecast var % = CALCULATE([Forecast var %], Programs[Program]="X")

Y Forecast var % = CALCULATE([Forecast var %], Programs[Program]="Y")

Z Forecast var % = CALCULATE([Forecast var %], Programs[Program]="Z")

 

Values in line chart:
Forecast var %
X Forecast var %
Y Forecast var %
Z Forecast var %

 

 

amitchandak
Super User
Super User

@Donia12215 ,

 

With line you do not have option to use secondary axis, when you use legend. So I doubt that

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

Thank you for your answer. Do you happen to know different way I could use to show variances for programs and all organisation? Maybe something from "get more visuals"?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors