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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors