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
I've used Tableau in the past for clients. However with this new client we are using Power BI.
I'm trying to create a field
=if(count(distinct MissingProduct)<1 'No Missing Products', 'Missing Products')
However i'm getting an error. "Syntax for MissingProduct' is incorrect.
Any advice?
I tried breaking up the calculation to just count distinct products, and getting an error about count function.
Thanks in advance
Solved! Go to Solution.
Hi,
I am not sure if I understood your question correctly, but please try the below if it suits your requirement.
create a field =
IF (
DISTINCTCOUNT ( 'Tablename'[MissingProduct] ) < 1,
"No Missing Products",
"Missing Products"
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
I am not sure if I understood your question correctly, but please try the below if it suits your requirement.
create a field =
IF (
DISTINCTCOUNT ( 'Tablename'[MissingProduct] ) < 1,
"No Missing Products",
"Missing Products"
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
I think this has worked. Will let you know
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 |
---|---|
112 | |
79 | |
77 | |
46 | |
38 |
User | Count |
---|---|
148 | |
116 | |
65 | |
64 | |
54 |