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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
derwa
New Member

Problem calculating with decimal numbers

I have a table in which I have decimal numbers as seen below:

derwa_0-1759916049036.png

As you can see it is formatted as decimal number.

While creating a measure I`m trying to calculate & count rows where the values is greater than 0.9, as seen below:

derwa_1-1759916176498.png

However the output is BLANK. When I try to find values > 0 it shows correct result, when I`m looking for values equal to 1, again it is working, but when I`m trying to use decimal value it is acting strangly.

To say more, when I`m trying to use > 0.1 or >0.000001 it seems that it takes it as 1 and shows result of >1, instead of values I provided.

Any idea what could be the cause?

1 ACCEPTED SOLUTION
derwa
New Member

ok, I found a solution. Had to change my regional settings on my laptop from English (USA) to English (Europe). For some reason this was messing up the whole calculation

View solution in original post

4 REPLIES 4
rohit1991
Super User
Super User

Hi @derwa 

Could you please try below Step :

1.Change the column’s data type to the correct format >> Decimal Number

 

2. Create Calculated column:

Flag = IF('Sample Data'[Number] > 0.9, 1, 0)

image.png

 

3. You can create measure as well. It gives you aggregate outcome:

TEMP = 
CALCULATE(
    COUNTROWS('Sample Data'),
    'Sample Data'[Number] > 0.9
)

image.png

 


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!
derwa
New Member

ok, I found a solution. Had to change my regional settings on my laptop from English (USA) to English (Europe). For some reason this was messing up the whole calculation

derwa
New Member

@bhanu_gautam thx for quick reply

Unforutnately still the same results. What is interesting, even below DAX gives me count on values less then 1, not decimal I provided:

derwa_0-1759917177536.png

 

bhanu_gautam
Super User
Super User

@derwa , Try using

DAX
CALCULATE(
COUNTROWS('Quality Self-Assessment and Audit Tracker'),
FILTER(
'Quality Self-Assessment and Audit Tracker',
'Quality Self-Assessment and Audit Tracker'[Self assessment score] > 0.9
)
)

 

If it still gives error try using round inside filter




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.