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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Microsoft Employee
Microsoft 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.