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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

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.