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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Simon_29
Helper II
Helper II

Power query has a problem with decimal places under conditions

Hello,

I have a problem that under the condition in Power Query, which I highlighted in yellow, the column called "Check 70% Margin" gives an incorrect output in the form of "no" as can be seen in the picture. In the first line (when I count integers) it throws the correct output, but in decimal numbers (the second line) it gives the output as "no" and there is a correct result.

Has anyone already had a similar problem that you could refer me to him?

Thank you very much for your help.

 

PQ_%.png

1 ACCEPTED SOLUTION
Vera_33
Resident Rockstar
Resident Rockstar

Hi @Simon_29 

 

You can use Number.Round: 

Number.Round( [Column2]/[Column1],1)=0.7

 

View solution in original post

4 REPLIES 4
FarhanAhmed
Community Champion
Community Champion

Your column Submitted TCV has an unassigned data type. change the type to decimal for both Submitted columns and check your results.







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




Hi,
I've tried this before and it didn't work. However, Vera33 below in this post gave the right solution and it already works.
Thank you very much 🙂

Vera_33
Resident Rockstar
Resident Rockstar

Hi @Simon_29 

 

You can use Number.Round: 

Number.Round( [Column2]/[Column1],1)=0.7

 

Hi Vera:) 

Your solution worked. I had never thought of such a possibility before.
Thank you very much:) 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors