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! Request now

Reply
vijayvizzu
Helper III
Helper III

Last Week Values are not populating properly

Hi

I have created below measure to get the Last week value, but it skips some of the rows, unable to find out the reason.

X_Test_Measure = 

VAR _LW_Price = 
    CALCULATE(
        [Total Value],
        DATEADD(
            CalendarT[Date],
            -7,DAY
        )
    )
RETURN 
IF(ISBLANK([Total Value]),BLANK(),_LW_Price)

pic.jpg

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @vijayvizzu ,

 

You are using '-7' in your formula, and there's no matched date so it returns blank.

You may consider to modify the last part of your formula as below.

IF(ISBLANK(_LW_Price),BLANK(),[Total Value])

It will return the total value if last week price is blank.

 

Best Regards,

Jay

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @vijayvizzu ,

 

You are using '-7' in your formula, and there's no matched date so it returns blank.

You may consider to modify the last part of your formula as below.

IF(ISBLANK(_LW_Price),BLANK(),[Total Value])

It will return the total value if last week price is blank.

 

Best Regards,

Jay

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