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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
davidibarrag
Helper I
Helper I

Problem with Matrix Actual and Last Month

Does anyone is having problems with the matrix in Power BI visualizations when trying to compare actuals vs past months in May 2024 update? I have a reports in previous updates and the same matrix works fine and with this one it does not work the way it has to. The DAX formula to calculate the Sales Q Last Month is the following:

 
Sales Q Last Month =
CALCULATE(
    [Sales Q],
    DATEADD(
        Date[Start of Month],
        -1,
        MONTH
    )
)

Imagen1.pngImagen2.png

1 ACCEPTED SOLUTION
sroy_16
Resolver II
Resolver II

If the DATEADD function is not working try using this DAX and see if it works.

Sales Q Last Month =
CALCULATE(
[Sales Q],
PARALLELPERIOD(
'Date'[Date],
-1,
MONTH
)
)

Also you can check using "SAMEPERIODLASTYEAR" function. Additionally check if the date table is marked as a date table.
Let me know if this works.

View solution in original post

1 REPLY 1
sroy_16
Resolver II
Resolver II

If the DATEADD function is not working try using this DAX and see if it works.

Sales Q Last Month =
CALCULATE(
[Sales Q],
PARALLELPERIOD(
'Date'[Date],
-1,
MONTH
)
)

Also you can check using "SAMEPERIODLASTYEAR" function. Additionally check if the date table is marked as a date table.
Let me know if this works.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.