Forum Discussion

PBIUser1316's avatar
PBIUser1316
Frequent Visitor
6 years ago
Solved

Filtering down to one record with DAX

Hello,   I'm trying to get one value in a measure and to do this I need to filter a table by four different columns. I can't use a calculated column for this because it takes too much calculation ...
  • v-yuta-msft's avatar
    6 years ago

    PBIUser1316 ,

     

    You may also modify the measure like below:

    gl =
    CALCULATE (
        LASTDATE ( 'Facts'[PeriodID] );
        FILTER (
            'Facts';
            'Facts'[column1] = "value1"
                && 'Facts'[column2] = "valuex"
                && 'Facts'[column3] = "valuey"
        )
    )
    

    If you still have other issues, please share some sample data and give the expected result.

     

    Community Support Team _ Jimmy Tao

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