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
Ankitapahuja
Regular Visitor

Percentage change with respect to previous value in table calculation

Is there any built-in functionality in Power BI, which helps to do table calculations like percentage change with respect to previous value/previous period/next value, running totals, percentage totals, percentage growth etc? If not, how can we calculate percentage change in a cross table in PowerBI worksheet?
Thanks a lot in advance.
4 REPLIES 4
Phil_Seamark
Employee
Employee

You will be able to achieve this but you'll need to create some calculated measures which we can help you with.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

@Ankitapahuja  You say cross table - which I'll assume to be a Matrix with 1 Row [Value] and 1 [Column Field]

 

1) You can write a Measure like this to calculate the % of Row Total

 

% of Row Total = 
DIVIDE (
    SUM ( Table1[Value] ),
    CALCULATE ( SUM ( Table1[Value] ), ALLSELECTED ( Table1[Column Field] ) ),
    0
)

% of Row Total.png

 

OR

 

2) if this doesn't give you what you want - try the Quick Calc Options in PBI -  % of Column Total or % of Grand Total

(you can also verify the above Measure calculates the same as the built-in Calc)

 

Quick Calcs.png

 

Currently that's all we have built-in - but you can simulate % Of Parent Row (or Column) and all others as Measures

such as these from Excel...

 

% Of Options.png

 

Hope this helps! Smiley Happy

Thanks @Sean. This helps. But my major concern for now is with creating Percentage change/growth with respect to previous values in table, for e.g week on week growth.

We have weeks in 1 column and sales in another, how can we calculate week on week growth for them?

Thanks in advance.

Which is possible but you'll need to create measures in Power BI. It's easy enough and we are keen to help.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

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.