Forum Discussion

donodackal's avatar
donodackal
Helper I
4 years ago
Solved

Text/Card Assistance

Hello   I have a filter in my report that filters all visuals by the filtered department/s.   I would like to insert a card or text box to my report showing which department the page is filtered....
  • ryan_mayu's avatar
    ryan_mayu
    4 years ago

    donodackal 

    you can try this

    Measure = 
    VAR tbl=distinct('Table'[Department])
    return if(COUNTROWS(tbl)=CALCULATE(DISTINCTCOUNT('Table'[Department]),ALL('Table')),"All department", if(COUNTROWS(tbl)>1,"multiple departments",max('Table'[Department])))