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
Anonymous
Not applicable

DAX Commands and Tips - Calculated Columns Issue

Hi.

I have 3 calculated columns:

 

Co1_1: = Units/Weeks

Result = 2.7

 

Col_2: = Capacity/(Col_1)/7

Result = 10.5

 

Col_3 = Col1*Col2

Result = 28.0

It should be 28.4

 

Any help.  Thank you

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello.  So far not solved yet.  All of my fields (columns) are Date type=Decimal & Format Decimal=Decimal Number.  All the calculation is doing is taking (L52_Avg_Mvmt)*L52_DOS_W) and it just keeps returning a whole number even with format set to decimals.

Simming2022_0-1671112878292.png

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hello.  So far not solved yet.  All of my fields (columns) are Date type=Decimal & Format Decimal=Decimal Number.  All the calculation is doing is taking (L52_Avg_Mvmt)*L52_DOS_W) and it just keeps returning a whole number even with format set to decimals.

Simming2022_0-1671112878292.png

 

ppm1
Solution Sage
Solution Sage

I suspect you have the formatting for your columns to show one decimal place. Increase that on the two input columns and you will likely see that 28.0 is correct. The original values are used in the calculation, but the format string controls how it is displayed.

 

Pat

Microsoft Employee
Anonymous
Not applicable

I took this same calculation out to excel (copied it from powerpivot).  If i have 2 decimal places it should show decimals and not whole numbers.  Any ideas? 

 

Simming2022_0-1671114462813.png

 

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.