The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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 worked very well with value like figures !
However, it don't work with value like text and I am embarrassed with that ..
Thanks
Best regards
David
Solved! Go to Solution.
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!
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!
@JoHo_BI
Thanks for your answer, it seems okey to work, when I selected nothing, nothing appear but now when I select a value, #,0.00 appear in place of my real value..
I can't reproduce the problem. Can you show a screenshot or share a file at all?
@JoHo_BI
My value are dates, so I just have to modelize them as a date and it sucess !
Thanks very much
Best regards
David
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
105 | |
77 | |
74 | |
44 | |
36 |
User | Count |
---|---|
152 | |
110 | |
64 | |
64 | |
57 |