Forum Discussion

Rajat529's avatar
Rajat529
New Member
3 years ago
Solved

Conditional Column

Hi There   I m new to Power BI and need Dax to achieve the output below.   In the dateset i want to add new column output where i want leads from the latest date of same ids and for the earlier d...
  • v-yalanwu-msft's avatar
    3 years ago

    Hi, Rajat529 ;

    Try this column by dax.

    Output2 = 
    var _maxdate= CALCULATE(MAX('Table'[Date]),ALLEXCEPT('Table','Table'[Id]))
    return IF([Date]=_maxdate,[Leads])

     The final show:


    Best Regards,
    Community Support Team _ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.