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

Round Total Value Only

Hello,

 

I have a large table that requires accuracy to two decimal places for each line in a column. However, since the table is so large the overall total is showing a very visually wide number, and accuracy to the decimal is not relavent in the total. It is wasting space. However, the total is necessary on the table (with rounding to zero decimal places)

 

Is it possible to write a dax expression that will round the total but not each line?

 

Thank you in advance,

Michael

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Never mind! Fixed it:

 

Sales KG = if(DISTINCTCOUNT('Sales Line'[Item No.]) > 1, fixed(sum('Sales Line'[KG]), 0), sum('Sales Line'[KG]))

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

You can try something like this:

IF(
    HASONEVALUE( TABLE[COLUMN]),
    [MEASURE],
    ROUND([MEASURE], 0)
)
Anonymous
Not applicable

Never mind! Fixed it:

 

Sales KG = if(DISTINCTCOUNT('Sales Line'[Item No.]) > 1, fixed(sum('Sales Line'[KG]), 0), sum('Sales Line'[KG]))

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.