Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi all,
My finance department has asked that the currency columns be format from -£5,000 to (£5,000)
I've tried a few options but I can't get this to work when the column is a measure...
Variance = FORMAT ( CALCULATE ( SUM ( Margin[Cont Margin] ) - SUM ( Margin[Cont Budget] ), FILTER ( ALL ( 'Calendar' ), 'Calendar'[Week] <= MAX ( 'Calendar'[Week] ) ) ), "£#,##0;(£#,##0)" )
The column is a calculating a cumulative variance over the weeks which needs formatting. The formatting works for any other column except a measure...
Any tips would be great, cheers
Solved! Go to Solution.
Do it in two steps:
Measure 2 = VAR myCalc = CALCULATE(100) RETURN FORMAT(myCalc,"£#,##0;(£#,##0)")
Perhaps the issue is with your calculation? I did something very simple:
Measure 2 = FORMAT(-100,"£#,##0;(£#,##0)")
This came out as:
(£100)
Positive numbers came out as:
£100
Seemed to be right.
Unfortunately this doesn't work with Calculate...
The formula for the measure works as expected, but as soon as I add the FORMAT(CALCULATE( it breaks.
Error in Table
Hi,
it does work with calculate function. But just be aware that using format function converts the value into a string / text data type.
I am using this function for the measure displayed in the matrix table with the option "no calculation" and not having any problem. Unfortunately such measure cannot be used in any line or stacked columns charts.
You know I actually have exactly the opposite problem. The US $ defaults to showing negatives like so ($100)
In Excel we have better Formatting options as you know and can see in the picture
But I was just surpised to find out you don't even have this option in the Excel Formatting for the pound
We need this option to be available for all currencies in PBI
And I hope they add it someday.....
Do it in two steps:
Measure 2 = VAR myCalc = CALCULATE(100) RETURN FORMAT(myCalc,"£#,##0;(£#,##0)")
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
80 | |
76 | |
61 | |
36 | |
32 |
User | Count |
---|---|
91 | |
60 | |
59 | |
49 | |
45 |