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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Week to Date Measure Grand Total not working

 

Hello PBI Community - 

I need some help, I'm creating a small dashboard with current month YTD, MTD, WTD compared to prior year. I'm having an issue with the WTD measure where its aggregate is not displaying. Any help would be greatly appreciated

 

Below is a screenshot and the measures I created

 

WTD Rev = IF (
    HASONEVALUE ( 'date'[year] )
        && HASONEVALUE ('date'[week number]),
    CALCULATE (
        [amount],
        FILTER (
            ALL ( 'date' ),
            'date'[year] = VALUES ('date'[year])
                && 'date'[week number] = VALUES ('date'[week number])
                && 'date'[Date] <= MAX ('date'[Date])
        )
    ),
    BLANK ()
)

 

 

 

WTD LY Rev = IF (
    HASONEVALUE ( 'date'[year] )
        && HASONEVALUE ('date'[week number]),
    CALCULATE (
        SUM('reporting ops_dashboard'[amt]),
        FILTER (
            ALL('date'),
            'date'[year] = VALUES ('date'[year])-1
                && 'date'[week number] = VALUES ('date'[week number])
                && 'date'[Date] <= MAX ('date'[Date])
        )
    ),
    BLANK ()
)

 

 

 

PBI WTD Measure.png

 

Thank you 

Mike

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

You can create measures like DAX below.

 

WTD Rev =CALCULATE (
       [amount],
       FILTER (
           ALLSELECTED ( 'date' ),
           'date'[year] = MAX('date'[year])
               && 'date'[week number] = MAX('date'[week number])))
 
 
WTD LY Rev = CALCULATE (
       [amount],
       FILTER (
           ALLSELECTED ( 'date' ),
           'date'[year] = MAX('date'[year]-1)
               && 'date'[week number] = MAX('date'[week number])))

 

Best Regards,

Amy

 

Community Support Team _ Amy

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

2 REPLIES 2
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

You can create measures like DAX below.

 

WTD Rev =CALCULATE (
       [amount],
       FILTER (
           ALLSELECTED ( 'date' ),
           'date'[year] = MAX('date'[year])
               && 'date'[week number] = MAX('date'[week number])))
 
 
WTD LY Rev = CALCULATE (
       [amount],
       FILTER (
           ALLSELECTED ( 'date' ),
           'date'[year] = MAX('date'[year]-1)
               && 'date'[week number] = MAX('date'[week number])))

 

Best Regards,

Amy

 

Community Support Team _ Amy

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

 

Anonymous
Not applicable

Thank you!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.