Forum Discussion

mariajuliao's avatar
mariajuliao
Frequent Visitor
4 years ago
Solved

Latest Value

Hello,   I want to create a measure or table that shows the latest value. I have a table that looks like this:   Device_SerialNumber Date Software_Version 12345 1/1/2022 2.3 12345 1...
  • SpartaBI's avatar
    SpartaBI
    4 years ago

    mariajuliao try this:

     

     

    Measure = 
    VAR _max_date = CALCULATE(MAX('Table'[Date]), REMOVEFILTERS('Table'[Date]))
    VAR _result = 
        CALCULATE(
            CONCATENATEX('Table','Table'[Software_Version], ", "),
            'Table'[Date] = _max_date
        )
    RETURN
        _result

     

     


    In case you have a date table then it will be like this:

     

    Measure = 
    VAR _max_date = CALCULATE(MAX('Table'[Date]), REMOVEFILTERS('Date')
    VAR _result = 
        CALCULATE(
            CONCATENATEX('Table','Table'[Software_Version], ", "),
            'Table'[Date] = _max_date
        )
    RETURN
        _result

     


    Let me know if that was it or we need to go deeper 🙂






          

    Showcase Report – Contoso By SpartaBI