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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Stuznet
Helper V
Helper V

Calculate Difference Total

Hi all,

 

The problem I ran into I want to divide Actual Start over Plan Start (Actual Start divide Plan Start)

 

This is the calculated Actual Start Total, thanks to @Greg_Deckler

https://community.powerbi.com/t5/Desktop/How-to-Calculate-Total-Column-When-is-Not-Displaying-the-To...

 

Actual Start = 
VAR __table = SUMMARIZE(MonthTable,[Month],"__value",[Actual Start])
RETURN
IF(HASONEVALUE(MonthTable[Month]),[Actual Start],SUMX(__table,[__value]))

This is the calculated Plan Start Total

 

Plan Start = 
VAR __table = SUMMARIZE(MonthTable,[Month],"__value",[Plan Start])
RETURN
IF(HASONEVALUE(MonthTable[Month]),[Plan Start],SUMX(__table,[__value]))

 

Now for the Total Finish%. I would like to count the difference Total by divide Actual Start Total over Plan Start Total to get Total Finish% total and not the total of the column

2018-09-27_8-11-44.png

 

How should I write this function? Do I need to create a new measure for that?

 

Thanks guys ^^

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

I may be incorrect, but I am thinking that you could create a new measure like:

 

Total Finish % = DIVIDE([Actual Start],[Plan Start],BLANK())

Should work in the context of ALL (total row) and individual rows. You would format it as a %.

 

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

I may be incorrect, but I am thinking that you could create a new measure like:

 

Total Finish % = DIVIDE([Actual Start],[Plan Start],BLANK())

Should work in the context of ALL (total row) and individual rows. You would format it as a %.

 

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_DecklerThank you so much for all your contributions and efforts to help other fellow users 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.