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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.