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
DSP
Frequent Visitor

Selective "rejustification" on measure refresh

Just toying with AW - very new to PP - and got what looks like a formatting glitch.

 

I set up a TotalSales measure, which returns the output left justified.

 

I go back to format the number output as round thousands with the FORMAT function.

 

This works fine - except that now, amounts less than £1m (£1,000 in round thousands) are right justified.

 

I took out the FORMAT function, and the format was as at first. Put it back in, and again, the same thing with the justification.

 

Any help with what's going on here?

4 REPLIES 4
v-qiuyu-msft
Community Support
Community Support

Hi @DSP,

 

Can you share a screenshot to clarify the issue? 

 

The Format() function will return the TEXT values. Instead of using Format() function in your measure, you can select the measure (before you using Format()) and enable the Thousands Separator. 

 

w3.PNG

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

The measure without formatting is

 

 

=CALCULATE ( 
    [TotalSales] ,
     FILTER (
        ALL ( DimDate ),
        DimDate[DateKey] <= MAX ( DimDate[DateKey]    )
    )
)

 

This produces the following:

 

SS1.png

 

 

 

 

 

 

 

The measure with formatting is

 

=FORMAT(
    CALCULATE ( 
    [TotalSales] ,
     FILTER (
        ALL ( DimDate ),
        DimDate[DateKey] <= MAX ( DimDate[DateKey]    )
    )
)
,"#,###,")

This produces the following:

 

SS2.png

 

 

 

DSP
Frequent Visitor

i'm still intrigued to know why this is happening (and how to make it stop!)

Hi @DSP,

 

Please try to change the measure like below: 

 

=FORMAT(
CALCULATE (
[TotalSales] ,
FILTER (
ALL ( DimDate ),
DimDate[DateKey] <= MAX ( DimDate[DateKey] )
)
)
,"Currency")

 

We can use predefined numeric function or custom numeric function, see: 

 

Pre-Defined Numeric Formats for the FORMAT Function

Custom Numeric Formats for the FORMAT Function

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

Top Solution Authors