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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Super User
Super User

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 %.

 

 


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

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 %.

 

 


@ 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!:
The Definitive Guide to Power Query (M)

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.