March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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?
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.
Best Regards,
Qiuyun Yu
The measure without formatting is
=CALCULATE ( [TotalSales] , FILTER ( ALL ( DimDate ), DimDate[DateKey] <= MAX ( DimDate[DateKey] ) ) )
This produces the following:
The measure with formatting is
=FORMAT( CALCULATE ( [TotalSales] , FILTER ( ALL ( DimDate ), DimDate[DateKey] <= MAX ( DimDate[DateKey] ) ) ) ,"#,###,")
This produces the following:
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
128 | |
90 | |
75 | |
56 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |