Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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"
)
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"
)
I think this has worked. Will let you know
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!