DAX Measure formatting to have thousands separator (comma) in visual

iosiflupis

New Member
Joined
Jan 26, 2022
Messages
39
Office Version
  1. 365
Platform
  1. Windows
Hello all,

I have the following DAX Measure:

Total Deplaned Cargo =
VAR TotalDeplaned =
SUM(Cargo_Numbers[Ameriflight Deplaned]) +
SUM('Cargo_Numbers'[American Deplaned]) +
SUM('Cargo_Numbers'[Southwest Deplaned]) +
SUM('Cargo_Numbers'[United Deplaned])
RETURN
INT(TotalDeplaned)

When I put this in a Line Chart and add the Data labels none of the labels have the thousands comma separator. I have tried multiple ways to get the comma to show. I have tried formatting in the DAX, I have tried to format the underlying data in the table, and I have tried the Format tool and Data Label.

I even resorted to ChatGPT without any luck.

Does anyone know how I can do this while keeping the measure formatted for Whole Number?

Thank you,

Joseph
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi,

It should work like this.

I made some dummy data, a list of decimals numbers and formatted the column in the data model as whole number with thousands separator (I'm European so that's a "." not a comma ','). Did you do this for all the columns inside the measure?

1711982139044.png


Same for the measure
1711982738829.png


On a chart (the line chart does not mean anything) the labels work per default.
1711982757679.png


The question is, how does the label number shows up at your end?
 
Upvote 0
GraH,
Thank you for the help. What I was forgetting was to set the 1000's separator in the actual measure to be on. Your comment helped me to realize that I forgot that simple, easy, step!
 
Upvote 0
Solution
Glad to read it was a quick fix. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,871
Messages
6,181,497
Members
453,047
Latest member
charlie_odd

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top