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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

If Condition issue

Hello Everyone,

 

I have created a if formula and i am not getting the right result.Below is my if formula

 

If_Formula = IF((By_Emp[Total_hrs]<By_Emp[Avail_Hrs]),"Missing","Correct")

 

Difference = By_Emp[Avail_Hrs]-By_Emp[Total_hrs]

 

If you see the screen shot below, difference is 0. So accordig to my IF formula it shows Missing in last column. I think it should be showing Correct in last column. Am i missing something here?

 

PBI.PNG

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

Hi skanchan,

 

I have reproduced your issue.

 

You are using a table visual like below, right? 

1.PNG 

See the original table, please check if the length of mantissa in a decimal is more than 2 because the table visual will emit several digits based on your setting which may mislead you.

2.PNG 

To see the correct result in table visual, click Modeling->Format->Change the number of decimal places.

3.PNG4.PNG 

 

Regards,

Jimmy Tao

View solution in original post

5 REPLIES 5
v-yuta-msft
Community Support
Community Support

Hi skanchan,

 

I have reproduced your issue.

 

You are using a table visual like below, right? 

1.PNG 

See the original table, please check if the length of mantissa in a decimal is more than 2 because the table visual will emit several digits based on your setting which may mislead you.

2.PNG 

To see the correct result in table visual, click Modeling->Format->Change the number of decimal places.

3.PNG4.PNG 

 

Regards,

Jimmy Tao

Anonymous
Not applicable

@v-yuta-msftSpot On 🙂

 

Thanks

Hardik
Continued Contributor
Continued Contributor

Well I tested the same at my end. Didn't find anything wrong with your formula.

 

test.png

 

Maybe you can try this If_Formula = IF([Difference]>0,"Missing","Correct") or If_Formula = IF(((By_Emp[Total_hrs]-By_Emp[Avail_Hrs])<0),"Missing","Correct")

Anonymous
Not applicable

@HardikThanks for your reply.

 

Strange that it work  at your end.

 

I dont want to use the difference colume because i created that column just to help troubleshoot the issue.

 

 

Hardik
Continued Contributor
Continued Contributor

@Anonymous  Try this If_Formula = IF(((By_Emp[Total_hrs]-By_Emp[Avail_Hrs])<0),"Missing","Correct"), it should work.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.