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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Calculated Column Dax variable value being rounded

I have a calculated Column that takes 5259 / 3753900 = 0.001400943 However this is being rounded to 0.0014 even when adding extra decimal places it goes to 0.0014000. Here is my dax, ive also gone into modelling to increase the calculated columns decimal places

Below variable is equal to 5259

VAR PerDateCost =
CALCULATE(
SUM(table[cost]) + SUM(table2[cost]),
FILTER(
'Calendar',
'Calendar'[Date] = EARLIER(table[Date])))       // Filter part to only sum one days worth
 
Below variable equals 3753900
VAR TotalCPUcost =
CALCULATE(
SUM(table[CPUtotal (m)]),
FILTER(
table,
table[ID] = 1 &&
table[Date] = EARLIER(table[Date])
)
)
 
Below dax then makes the calculation
VAR oneUnitCPU = PerDateCost/TotalCPU
 
return oneUnitCPU 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

i found the issue was with this, when this column was a decimal number it would go back far past 4 decimals, after switching to fixed decimal number currency capped at 4 places.

jnickson_0-1665770075917.png

Top Row Example: 0.4738 actual value

 

jnickson_1-1665770109163.png

Top Row Example: 0.473840133 actual value

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

i found the issue was with this, when this column was a decimal number it would go back far past 4 decimals, after switching to fixed decimal number currency capped at 4 places.

jnickson_0-1665770075917.png

Top Row Example: 0.4738 actual value

 

jnickson_1-1665770109163.png

Top Row Example: 0.473840133 actual value

v-jianboli-msft
Community Support
Community Support

Hi @Anonymous ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1665716089094.png

vjianbolimsft_1-1665716100070.png

After my test, it works fine in my side:

vjianbolimsft_2-1665716151531.png

Could you please provide more details about your table and your problem such as:

What is the Version of your Desktop?

What is your data source?

What is the connection mode?

Please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

 

Refer to:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi, thanks for the reply i am connected to azure storage, i created an export from azure and their costs seem to be capped at 4 decimal places, i can only assume this then carrys through when im doing the calculations 

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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