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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Puja_Kumari25
Helper III
Helper III

Format values in Norwegian with space as thousand separator

Hi Experts,

 

Please help me format mesures values in Norwegian with space as a thousand separator. we have to show a measure gauge chart, bar chart and tabular visual.

I have uploaded a sample file at the location : 

https://drive.google.com/file/d/1dBk0QdRc2fSic7CFYb8HjI-Vpy2uTM5u/view

1 ACCEPTED SOLUTION

Hi again @Puja_Kumari25 

No problem, I have attached your PBIX with some updates.

 

1. Order Value

### ### ### ### ##0;-### ### ### ### ##0;0

Standard format string entered in the Measure tools > Format box.

OwenAuger_0-1742462564409.png

 

2. Order Value Dynamic

An example of a dynamic format string.

Measure tools > Format > Dynamic:

-- Sample number format handling millions
VAR BaseFormat =
    "### ### ### ### ##0"
VAR MeasureValue =
    SELECTEDMEASURE ()
VAR MeasureValueAbsolute =
    ABS ( MeasureValue )
VAR Result =
    IF (
        MeasureValueAbsolute >= 10^6,
        -- Format for absolute values >= 10^6
        BaseFormat & "M,,;-" & BaseFormat & "M,,;0",
        -- Format for smaller absolute values
        BaseFormat & ";-" & BaseFormat & ";0"
    )
RETURN
    Result

OwenAuger_1-1742462661416.png

OwenAuger_3-1742462688262.png

Hope that helps!

 

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

7 REPLIES 7
Puja_Kumari25
Helper III
Helper III

hi 

Hi, 

can we replace comma as decimal place like- 272 556 .80   

                                                            272 556 ,80  

OwenAuger
Super User
Super User

Hi @Puja_Kumari25 

Without playing with any regional settings, you could set the format string for the measure (or column if using implicit measures) to:

### ### ### ### ##0

From what I can gather, the use of a non-comma thousands separator does not automatically "scale", so you would have to include enough "#" placeholders to accommodate the most digits that will need to be displayed.

 

Variants to handle decimals and units of thousands or millions should also be possible.

 

Would something like this work?


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Hi, Could you please help me with the sample solution, I have attached pbix

Hi, 

can we comma as decimal place like- 272 556 .80   

                                                            272 556 ,80   

I'm afraid I don't know how to do that. I'm pretty sure it can't be controlled through the format string and would involve some regional settings.

I suggest posting that question in a new thread to see if anyone has any suggestions.


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Hi again @Puja_Kumari25 

No problem, I have attached your PBIX with some updates.

 

1. Order Value

### ### ### ### ##0;-### ### ### ### ##0;0

Standard format string entered in the Measure tools > Format box.

OwenAuger_0-1742462564409.png

 

2. Order Value Dynamic

An example of a dynamic format string.

Measure tools > Format > Dynamic:

-- Sample number format handling millions
VAR BaseFormat =
    "### ### ### ### ##0"
VAR MeasureValue =
    SELECTEDMEASURE ()
VAR MeasureValueAbsolute =
    ABS ( MeasureValue )
VAR Result =
    IF (
        MeasureValueAbsolute >= 10^6,
        -- Format for absolute values >= 10^6
        BaseFormat & "M,,;-" & BaseFormat & "M,,;0",
        -- Format for smaller absolute values
        BaseFormat & ";-" & BaseFormat & ";0"
    )
RETURN
    Result

OwenAuger_1-1742462661416.png

OwenAuger_3-1742462688262.png

Hope that helps!

 

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Hi , Thanks alot 

this solution is working 

Thank you!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.