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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Christianvs
Helper I
Helper I

Adding thousand separator in SQL statement

Hi

 

Is it possible to add thousand separators (as period, not comma)  when loading in data from a db, that is in the SQL statement?

 

I have tried different things such as the FORMAT() SQL funtion, but it doesn't seem to work in Power BI.

 

Thanks

2 REPLIES 2
Thejeswar
Resident Rockstar
Resident Rockstar

Hi @Christianvs ,

You can change the thousand separator in Power BI while displaying in the report by changing regional settings / locale. There are many similar posts here in the community. Skim through the community and you will get lot of questions posted on this with solutions

Giving link for one such post here.

How to change thousand and decimal separator - Microsoft Power BI Community

 

 

Thanks for the answer @Thejeswar.

My problem is that i afterwards (within the SQL statement) add letters and parantheses to the value so I have to keep the format in chars. 

So atm. I have:

1049 kr. (5)

and I need the following:

1.049 kr. (5)

 

I managed to do it by adding several steps in Power Query, but I was hoping that it was possible to do within a single SQL statement

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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