Forum Discussion

josevaras's avatar
josevaras
Microsoft Employee
5 years ago
Solved

Show Filtered Value

Hello everyone, I use the below statement to return a filtered value. I do it to highlight the value as a header for the visualization. My question is, how do I change the statement below So that...
  • v-kelly-msft's avatar
    v-kelly-msft
    5 years ago

    Hi josevaras ,

     

    Create a measure as below:

     

    Measure = 
    var _count=CALCULATE(DISTINCTCOUNT('Table'[Column1]),ALLSELECTED('Table'[Column1]))
    Return
    IF(NOT(ISFILTERED('Table'[Column1])),BLANK(),
      IF(_count=1,MAX('Table'[Column1]),
      CONCATENATEX(VALUES('Table'[Column1]),'Table'[Column1]," and ")))

     

    And you will see:

     

    For the related .pbix file,pls see attached.

     

    Best Regards,
    Kelly

    Did I answer your question? Mark my post as a solution!