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
ysherriff
Resolver II
Resolver II

Formatting Numbers in DAX

Hi BI Community,

 

Need quick,

 

Can someone tell me what is wrong with my syntax? I have a dynamic chart title and format both fixed and percent numbers. The % numbers is working but I can't for some reason get the fixed number to work. I want a "," to so seperate the thousands. In the below example, I want to show 1,585. 

 

Thanks for your help.

 

My formula is

 

"Top " & SELECTEDVALUE(TopNSelection[Value]) & " campaigns contributed " & Format(TopNSelection[Top N SUM], "#.#, which is " & FORMAT(TopCampaignPct,"#.#% of all campaigns in " &SELECTEDVALUE('Date'[Qtr-Yr]) ))

 

ysherriff_0-1650989865943.png

 

Thank you in advance

1 ACCEPTED SOLUTION

Instead of "#.#" with a period try "#,#" with a comma.

View solution in original post

5 REPLIES 5
PC2790
Community Champion
Community Champion

Did you try the thousand comma separator in the formatting section of Measure tools in measure?

PC2790_0-1650993428993.png

Outcome:

PC2790_1-1650993460272.png

 

Thanks PC2790 but I am doing this via DAX. It is a dynamic chart.

I have reformatted it as below but it still not giving me the comma for the thousands.

 

ysherriff_0-1650996203494.png

 

ysherriff_1-1650996268123.png

 

Instead of "#.#" with a period try "#,#" with a comma.

Thanks Alexis. It worked.

 

Much appreciated

 

Let me clarify, the formula is in text string so you can not format it in Measures.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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