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
Trapatoni
Regular Visitor

Issue with calculated column (decimals)

Hello community,

 

I'm struggling with a calculation in a column.

It is a quite easy calculation.

 

2019-09-09_13-03-10.jpg

 

The formula is as follows:

[theoretical consumption]] = [Actual Qty]*[Film in kg]*2/1000
 
1st row is calculated wrong: It should be 218,85
2nd one looks OK.
 
Is it a problem of decimal, 1000 seperator, language settings?
Any idea how I could solve that?
 
Many thanks in advance
1 ACCEPTED SOLUTION

For any reason the column [film in kg] was formated as datatype: text.

 

I dont know why it was working for some lines, but after change the type to decimalnumber, the calculation works fine.

 

I mark the thread as solved

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi,

I would Advise you to use Brackets when handling functions. Second, Try and check the Thousands Separator under Modelling to check if the issue is caused by that.


@Trapatoni wrote:

Hello community,

 

I'm struggling with a calculation in a column.

It is a quite easy calculation.

 

2019-09-09_13-03-10.jpg

 

The formula is as follows:

[theoretical consumption]] = [Actual Qty]*[Film in kg]*2/1000
 
1st row is calculated wrong: It should be 218,85
2nd one looks OK.
 
Is it a problem of decimal, 1000 seperator, language settings?
Any idea how I could solve that?
 
Many thanks in advance


@Trapatoni wrote:

Hello community,

 

I'm struggling with a calculation in a column.

It is a quite easy calculation.

 

2019-09-09_13-03-10.jpg

 

The formula is as follows:

[theoretical consumption]] = [Actual Qty]*[Film in kg]*2/1000
 
1st row is calculated wrong: It should be 218,85
2nd one looks OK.
 
Is it a problem of decimal, 1000 seperator, language settings?
Any idea how I could solve that?
 
Many thanks in advance

 

@Anonymous 

Thanks for the quick reply.

 

If I activate thousands seperator in the modelling tab I just get 2188,5 -> 2.188,5

2019-09-09_13-20-15.jpg

 

I checked some further rows and it seems to be an issue of the number of decimals of column [film in kg]

2019-09-09_13-15-33.jpg

 

If somebody could explain me that i would really apreciate it.

 

 

By using brackets you mean

[theoretical consumption] = ([Actual Qty]*[Film in kg]*2/1000)

instead of

[theoretical consumption] = [Actual Qty]*[Film in kg]*2/1000

?

For any reason the column [film in kg] was formated as datatype: text.

 

I dont know why it was working for some lines, but after change the type to decimalnumber, the calculation works fine.

 

I mark the thread as solved

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.