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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.