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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
jonclay
Helper IV
Helper IV

Working out the %age increase / decrease year on year

Hi everyone

I'm trying to work out the percentage increase or decrease based on year on year values within a table.

I'm using this DAX Measure to calculate the value of payments from each contact:

Paid (Nett) = CALCULATE(SUM(values[nett]), FILTER(values, values[status]="Paid"))

This is then shown in a Table:
jonclay_0-1729853398374.png


I'd like to achieve a DAX Measure (preferably) that shows the increase / decrease between the various years e.g. that 1983/1984 is a 2000% increased on 1982/1983 and that 1984/1985 is a 99% decreasd on 1983/1984 etc.

Could anyone please tell me the best way to achieve this?

Many thanks
Jon



1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jonclay ,

 

Thanks divyed  for the quick reply. I have some other thoughts to add:

(1) We can create measures.

rank =
RANKX (
    SUMMARIZE ( ALLSELECTED ( 'Fin_Yr' ), [Fiscal Year], "nett", [Paid (Nett)] ),
    [Fiscal Year],
    MAX ( 'Fin_Yr'[Fiscal Year] )
)
Change = var _rank=[rank]+1
var _pre= CALCULATE([Paid (Nett)],FILTER(ALLSELECTED('values'),[rank]=_rank))
var _current=[Paid (Nett)]
RETURN DIVIDE(_current-_pre,_pre)

(2) Then the result is as follows.

vtangjiemsft_0-1730095377902.png

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

View solution in original post

4 REPLIES 4
jonclay
Helper IV
Helper IV

Thank you, everyone.

These all work in different ways, so I have a great choice 🙂

Anonymous
Not applicable

Hi @jonclay ,

 

Thanks divyed  for the quick reply. I have some other thoughts to add:

(1) We can create measures.

rank =
RANKX (
    SUMMARIZE ( ALLSELECTED ( 'Fin_Yr' ), [Fiscal Year], "nett", [Paid (Nett)] ),
    [Fiscal Year],
    MAX ( 'Fin_Yr'[Fiscal Year] )
)
Change = var _rank=[rank]+1
var _pre= CALCULATE([Paid (Nett)],FILTER(ALLSELECTED('values'),[rank]=_rank))
var _current=[Paid (Nett)]
RETURN DIVIDE(_current-_pre,_pre)

(2) Then the result is as follows.

vtangjiemsft_0-1730095377902.png

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

divyed
Super User
Super User

Hello @jonclay ,

 

You can try below dax :

 

YOY Change =
VAR CurrentYear = VALUE(LEFT(T_Paid[Fiscal_Year], 4))
VAR Previous_Year = CurrentYear - 1
VAR PreviousYearValue =
    CALCULATE(
        SUM(T_Paid[Paid_Nett]),
        FILTER(
            T_Paid,
            VALUE(LEFT(T_Paid[Fiscal_Year], 4)) = Previous_Year
        )
    )
RETURN
    IF(
        NOT(ISBLANK(PreviousYearValue)),
        (T_Paid[Paid_Nett] - PreviousYearValue) / PreviousYearValue,
        BLANK()
    )
 
divyed_0-1729855561497.png

 

 

I hope this helps. Did I answer your query ? Mark this as solution if this has solved your issue.

 

Cheers

LinkedIn : https://www.linkedin.com/in/neeraj-kumar-62246b26/

Hi there @divyed 

Many thanks for your reply.

The Fiscal Year field is a calculated column on the Fin_Yr table, so I can't seem to get your code to work. I'm using the following code to create the column:

Fiscal Year = IF(month('Fin_Yr'[Date])<9,year('Fin_Yr'[Date])-1&"/"&year('Fin_Yr'[Date]),year('Fin_Yr'[Date])&"/"&year('Fin_Yr'[Date])+1)

How could I amend your code to accommodate this?

Many thanks
Jon



Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.