cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ScotsSailor Frequent Visitor
Frequent Visitor

Calculate Percentage Difference Between Table Column Totals

I have a simple table showing values for two different years of data. I want to show the total year to year percentage difference in the last column (YOY % Change) in the total row at the bottom of the table. Here is the table.Capture.PNG

In Excel, I would just drop a simple formula in the cell. How do I show the percentage difference between the table column Totals? In effect (JV_tot - JV_tot_17)/JV_tot_17 for the total row?

 

Thanks for your help. I am obviously new to Power bi.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Thejeswar Senior Member
Senior Member

Re: Calculate Percentage Difference Between Table Column Totals

Hi @ScotsSailor,

I tried re-creating your requirement and it seems to work the way that you are expecting it to work

 

I have created 2 measures and below are the codes for them

Measure = SUM(Table1[JV_Tot]) - SUM(Table1[JV_tot_17])
Measure 2 = [Measure]/SUM(Table1[JV_tot_17])

 

The Below is the screenshot

measure.PNG

 

 

One possiblity why the percentage not getting displayed in totals is, you have created the YOY Change and YOY% Change as columns and given don't summarize as the aggregation rule for YOY% change

 

Also keep in might for this creating YOY% Change as column will not give the right values for your total even if they start appearing in totals

 

Hope this solvesyour issue!!!

View solution in original post

2 REPLIES 2
Thejeswar Senior Member
Senior Member

Re: Calculate Percentage Difference Between Table Column Totals

Hi @ScotsSailor,

I tried re-creating your requirement and it seems to work the way that you are expecting it to work

 

I have created 2 measures and below are the codes for them

Measure = SUM(Table1[JV_Tot]) - SUM(Table1[JV_tot_17])
Measure 2 = [Measure]/SUM(Table1[JV_tot_17])

 

The Below is the screenshot

measure.PNG

 

 

One possiblity why the percentage not getting displayed in totals is, you have created the YOY Change and YOY% Change as columns and given don't summarize as the aggregation rule for YOY% change

 

Also keep in might for this creating YOY% Change as column will not give the right values for your total even if they start appearing in totals

 

Hope this solvesyour issue!!!

View solution in original post

ScotsSailor Frequent Visitor
Frequent Visitor

Re: Calculate Percentage Difference Between Table Column Totals

It did indeed solve the issue and you guessed it, I was using columns instead of measures. I'm very greateful for your prompt response. I am just beginning to understand Power BI, having spent quite some time with PowerQuery and Pivot tables.

 

Best regards,

ScotsSailor

Helpful resources

Announcements
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 447 members 4,836 guests
Please welcome our newest community members: