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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
MIkeMak
Regular Visitor

Incremental percent

 

How do I calculate the column "incremental percent" in Power BI for example  for column D1 the formula is =+C1/B1-1 ,

the  formula for column D2  is =+SUM(C1:C2)/SUM(B1:B2)-1 and the formula for column D3 is +SUM(C1:C3)/SUM(B1:B3)-1 and so on , than you

 

  

     A                            B                                         C                            D

   Month                  sales last year                   sales current year      Incremental percent 

1   January                   5.484.136                          5.882.299                             7.3%

2   February                 5.805.312                          6.692.629                            11.4%

3  March                      5.603.781                          6.831.526                            14.9% 

 

2 ACCEPTED SOLUTIONS
mattbrice
Solution Sage
Solution Sage

 

 

Actually, after thinking about it, I think the VAR will be out of scope for the FILTER, so need to change this to:

 

 

measure =
CALCULATE (
    DIVIDE ( SUM ( Table[C] ), SUM ( Table[B] ) ) - 1,
    FILTER (
        ALL ( Calendar ),
        Calendar[MonthNumber] <= MAX ( Calendar[MonthNumber] )
    )
)

 

View solution in original post

v-huizhn-msft
Employee
Employee

Hi @MIkeMak,

Please try the measure like @mattbrice posted. Set the measure data type as percentage.

1.PNG


Then create a table visual, select the month, sales last year sales, current year sales and measure as value, you will get expected result.

2.PNG

Best Regards,
Angelia 

View solution in original post

3 REPLIES 3
v-huizhn-msft
Employee
Employee

Hi @MIkeMak,

Please try the measure like @mattbrice posted. Set the measure data type as percentage.

1.PNG


Then create a table visual, select the month, sales last year sales, current year sales and measure as value, you will get expected result.

2.PNG

Best Regards,
Angelia 

Thank you!  v-huizhn-msft and  mattbrice for the solutions , best regards

mattbrice
Solution Sage
Solution Sage

 

 

Actually, after thinking about it, I think the VAR will be out of scope for the FILTER, so need to change this to:

 

 

measure =
CALCULATE (
    DIVIDE ( SUM ( Table[C] ), SUM ( Table[B] ) ) - 1,
    FILTER (
        ALL ( Calendar ),
        Calendar[MonthNumber] <= MAX ( Calendar[MonthNumber] )
    )
)

 

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

Users online (963)