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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
SupriyaVarun
Frequent Visitor

Dax : I want to write Dax measure % increase or decrease versus pervious month

Hi Everyone,

 

Can you please help with Dax, I am using a Live connection and I have to Write Dax measure for the Actuals

For Fiscal month.

I want the output like this below

 

Jan = 0%

Feb = 15.3% -18.7%  = -3.4% 

Mar = 16.1% -15.3% = 0.8%

 

SupriyaVarun_0-1689055684908.png

Thank you 

1 ACCEPTED SOLUTION

Hi Tamerj,

Thanks a lot for the help 🙂 It worked 


% Automated Order EU - Previous Month =
VAR CurrentAcual = [% Automated order EU]
VAR PreviousActual =
CALCULATE (
[% Automated order EU],
ALLSELECTED ( 'SM Dim Calendar' ),
'SM Dim Calendar'[Fiscal Month Number]
= MAX ( 'SM Dim Calendar'[Fiscal Month Number] ) - 1
)
RETURN
CurrentAcual - COALESCE ( PreviousActual, CurrentAcual )

View solution in original post

3 REPLIES 3
SupriyaVarun
Frequent Visitor

Hi @tamerj1 ,

 

For the below query how to hide the Future months eg : Aug month showing the -44.6% now  I want it to show blank

SupriyaVarun_0-1689772754325.png

 

 

% Automated Order EU - Previous Month =
VAR CurrentAcual = [% Automated order EU]
VAR PreviousActual =
CALCULATE (
[% Automated order EU],
ALLSELECTED ( 'SM Dim Calendar' ),
'SM Dim Calendar'[Fiscal Month Number]
= MAX ( 'SM Dim Calendar'[Fiscal Month Number] ) - 1
)
RETURN
CurrentAcual - COALESCE ( PreviousActual, CurrentAcual )

 

Thanks in advance

tamerj1
Community Champion
Community Champion

Hi @SupriyaVarun 
The assumption is that your date table contains a YearMonthRank column which is a squential number that increases by one every month over the years.

Actual MOM =
VAR CurrentAcual = [Actual]
VAR PreviousActual =
    CALCULATE (
        [Actual],
        ALLSELECTED ( 'Date' ),
        'Date'[YearMonthRank]
            = MAX ( 'Date'[YearMonthRank] ) - 1
    )
RETURN
    CurrentAcual - COALESCE ( PreviousActual, CurrentAcual )

Hi Tamerj,

Thanks a lot for the help 🙂 It worked 


% Automated Order EU - Previous Month =
VAR CurrentAcual = [% Automated order EU]
VAR PreviousActual =
CALCULATE (
[% Automated order EU],
ALLSELECTED ( 'SM Dim Calendar' ),
'SM Dim Calendar'[Fiscal Month Number]
= MAX ( 'SM Dim Calendar'[Fiscal Month Number] ) - 1
)
RETURN
CurrentAcual - COALESCE ( PreviousActual, CurrentAcual )

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.