Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
90 | |
77 | |
63 | |
47 | |
39 |
User | Count |
---|---|
118 | |
86 | |
80 | |
58 | |
40 |