Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

If not, result error

The formula used is given in the screenshot. If length, width, height >0 then "YES" plus "No"

Els

sbhan4_0-1601341558350.png

1 ACCEPTED SOLUTION
calerof
Impactful Individual
Impactful Individual

Hello @sbhan4 ,

Try this:

GPPCheck = 
SWITCH(
    TRUE(),
    SUM(GPP[Height]) <=  0 ||
    SUM(GPP[Lenght]) <= 0 ||
    SUM(GPP[Width]) <= 0,
    "No",
    "Yes"
)

gpp.png

I hope it helps.

Best regards

Fernando

If it helped, please consider liking the post and mark it in response.

View solution in original post

14 REPLIES 14
calerof
Impactful Individual
Impactful Individual

@Anonymous 

Are you using Width or Weight?

F

Anonymous
Not applicable

@calerof width

 

calerof
Impactful Individual
Impactful Individual

@Anonymous 

You're not showing the Width column in your screen-shot. It'd be helpful if you share a sample of your data.

F

 

Anonymous
Not applicable

@calerof plz take a look

sbhan4_0-1601342116140.png

calerof
Impactful Individual
Impactful Individual

Hello @sbhan4 ,

Try this:

GPPCheck = 
SWITCH(
    TRUE(),
    SUM(GPP[Height]) <=  0 ||
    SUM(GPP[Lenght]) <= 0 ||
    SUM(GPP[Width]) <= 0,
    "No",
    "Yes"
)

gpp.png

I hope it helps.

Best regards

Fernando

If it helped, please consider liking the post and mark it in response.

Anonymous
Not applicable

@calerof Hello sir,

 

I tried your solution. Everything showing "YES" only. As you see in the screenshot, 

if any of the column value is 0 or blank = NO

Each column has a value >0 then only YES. can you share your pbix file.

 

sbhan4_2-1601586777465.png

 

 

sbhan4_1-1601585710392.png

 

 

calerof
Impactful Individual
Impactful Individual

Hi @Anonymous ,

 

You are doing it the opposite way, and that's fine. You just have to change the OR for AND.

 

Cheers,

Fernando

calerof
Impactful Individual
Impactful Individual

and.png

Anonymous
Not applicable

@calerof

Hi,

I tried that too. The first row should be NO. Everything is coming YES.

sbhan4_0-1601588103970.png

calerof
Impactful Individual
Impactful Individual

What is your code for GGP now?

 

Anonymous
Not applicable

Hi,

As you can see in the screenshot, the code is the same as you told. Now I changed || to &&.

calerof
Impactful Individual
Impactful Individual

Please provide a sample of your data with your pbix file to help you.

F

 

Anonymous
Not applicable

@calerof It's working now. Great help!

Anonymous
Not applicable

@calerof I have updated the screenshot with a width column. Please help me with that.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.