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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AllanBerces
Helper IV
Helper IV

Sum of Lates Date

Hi,

Thamk you in advance.

Can anyone pls assist me, I have a table below. What measure to write, in need output sum of lates date for a certain date.

 

AllanBerces_0-1702891907648.png

 

Thank you

3 REPLIES 3
v-shex-msft
Community Support
Community Support

HI @AllanBerces,

You can try to use the following measure formula if helps:

formula =
VAR _lastDate =
    CALCULATE ( MAX ( table1[Date] ), ALLSELECTED ( table1 ) )
RETURN
    CALCULATE (
        SUM ( table1[Progress] ),
        FILTER ( ALLSELECTED ( table1 ), [Date] = _lastDate ),
        VALUES ( table1[Team] )
    )

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
PijushRoy
Super User
Super User

Hi @AllanBerces 

Use DATESYTD, find DAX & example
https://learn.microsoft.com/en-us/dax/datesytd-function-dax 

CALCULATE(SUM('TableName'[Progress]), DATESYTD('TableName'[CurrentDate]))  



Thank you for the respond, but on the DAX it calculate the overall progress on that date not on the specific Team on that date. Maybe you can assist me on that. Thank you very much

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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