Forum Discussion

Stuznet's avatar
Stuznet
Icon for Helper V rankHelper V
7 years ago
Solved

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-Total/m-p/527753#M247151

 

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

 

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

 

Thanks guys ^^

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

     

     

2 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Icon for Community Champion rankCommunity 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 %.