Forum Discussion

rahul_ferns's avatar
rahul_ferns
Helper II
3 years ago
Solved

Filter Card as per Dropdown Selection

Hello Experts I need some help and guidance with populating a card as per selection of a dropdown   I have a Slicer that lets users select the Year and I have added the Year from the calendar tabl...
  • v-yueyunzh-msft's avatar
    v-yueyunzh-msft
    3 years ago

    Hi , rahul_ferns 

    You can try to this ,i may make a mistake for this dax code:

    Measure = var _select =COUNTROWS(VALUES('Table'[Year]))
    var _total = COUNTROWS(ALL('Table'[Year]))
    return
    IF(_select = _total ,"all",MIN('Table'[Year]))

     

    Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

     

    Best Regards,

    Aniya Zhang

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