Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

if statement

I have particulars column in matrix table i need to compare particular column like table[particulars] = "first", i tried same like that but in if statement it is not showing table and column name.how can i achieve it

  • Hi Anonymous,

     

    Try measure as:

    Measure = 
    IF(
        MAX('Table'[particulars])="first",
        1,
        0
    )

    Here is the output:

    If you still have some question, please don't hesitate to let me known.‌‌

     

    Best Regards,

    Link

     

    Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Try using a DAX measure with IF(SELECTEDVALUE(Table[Column] = "first", ...., ...)

  • v-xulin-mstf's avatar
    v-xulin-mstf
    Icon for Community Support rankCommunity Support

    Hi Anonymous,

     

    Try measure as:

    Measure = 
    IF(
        MAX('Table'[particulars])="first",
        1,
        0
    )

    Here is the output:

    If you still have some question, please don't hesitate to let me known.‌‌

     

    Best Regards,

    Link

     

    Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!