Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Get column values based on condition in another column

Hello,   I'm trying to get values in a column that meet a condition in another column. For example, say I have two columns in a table, and I want to get all the values in column2 for which column1 ...
  • smpa01's avatar
    smpa01
    4 years ago

    Anonymous  you can use following two measures 

     

    _earliestBeginDate =
    CALCULATE (
        MIN ( Table2[Begin_Date] ),
        TREATAS ( SUMMARIZE ( Table1, Table1[Values] ), Table2[Values] )
    )
    _latestEndDate =
    CALCULATE (
        MAX ( Table2[End_Date] ),
        TREATAS ( SUMMARIZE ( Table1, Table1[Values] ), Table2[Values] )
    )