Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

slicer no selection

Hello, being new in power BI, I have a lot of beginner questions!   I want to count and display the disctint values of a specific column, for that I created a measure using DISTINCTCOUNT function. ...
  • v-danhe-msft's avatar
    v-danhe-msft
    7 years ago

    Hi Anonymous,

    I have modified my formula with countProd, you could refer to it:

    countProd = IF(ISFILTERED(Sheet7[Product]),DISTINCTCOUNT(Sheet7[Product]),IF(ISBLANK(SELECTEDVALUE(Sheet7[Product])),0))

    Result:

    Hope it could help you.

     

    Regards,

    Daniel He