Forum Discussion

DavidB023's avatar
DavidB023
Helper III
8 years ago
Solved

Empty visual

Hi everybody !   I would like to make empty my visual when I don't choose a date in my slicer.   In fact I used :    IF (     DISTINCTCOUNT ( XXXX ) = 1;     SUM ( XXX);     "" ) And it wo...
  • JoHo_BI's avatar
    8 years ago

    Hi DavidB023,

     

    Use the DAX function HASONEVALUE() here, an example would be: 

     

    IF(HASONEVALUE(TextTable[Text]), VALUES(TextTable[Text]), "Or i'll do this..")

     

    Hope this helps!