Forum Discussion

CJANE's avatar
CJANE
Icon for Helper I rankHelper I
8 years ago
Solved

LAST DATE FROM FILTERED DATA

I am having trouble finding a solution to displaying units sold based on last date in a date column.  For example:  I have a data set that includes Trust Symbol, Date Sold, Manufacture, and Units Sol...
  • Vvelarde's avatar
    8 years ago

    CJANE

     

    Hi, Try with this measure:

     

     

    UnitsSold-LastDate =
    CALCULATE (
        SUM ( Table1[Units Sold] ),
        FILTER (
            Table1,
            Table1[Date Sold]
                =  CALCULATE ( LASTDATE ( Table1[Date Sold] ), ALL ( Table1 ) ) 
        )
    )

    Regards

     

    Victor

    Lima - Peru