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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
davidibarrag
Helper I
Helper I

Measures in visuals does not work

I have creeated a sameperiodlastyear measure and when I place it in my matrix, it does not work correctly even though I place the date in different ways. Other thing I used to do is to create a bar chart filtered on the last year and the diference between the sameperiodlastyear and the actual was calculated with the right number, but today (may 2024 update) this diferrence (it is a new measure) does not work correctly. Does any one has the same problem?

3 REPLIES 3
Anand24
Super User
Super User

Hi @davidibarrag ,
Please provide sample data and expected output. Also, please let us know what error/incorrect value you are getting.
This can help us solve your query.

Look at the pictures, I create a matriz with monthly sales and sales last year. The first picture is without any filter in the year slicer, and in january 2024 it has the sales of december 2023. But when I filter the year for only 2024, in january the sales from last month disappear. I have antoher power bi file (from april 2024 update) and this mistake does not happen. Do you know what is happening here. Image 1Image 1Image 2Image 2

This is the DAX formula to calculate sales Q Last Month

Sales Q Last Month =
CALCULATE(
    [Venta Total Q],
    DATEADD(
        Fecha[Inicio del mes],
        -1,
        MONTH
    )
)

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors