Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Everyone,
How can I convert this Dax to measure,
Solved! Go to Solution.
Hi @Rabi ,
Based on your description, I'm wondering that you want to change a negative number in a column of data to a positive number and replace the positive number with a "-"
I did a simple test and the result is as follows:
CARER EXCESS =
VAR _1=
if(MIN('Table'[Number]) <0,MIN('Table'[Number]),0)*-1
VAR _2 = IF(_1 = 0,"-",_1)
RETURN
_2
Please feel free to correct me and provide more information if I have misunderstood you!
An attachment for your reference. Hope it helps!
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Rabi ,
Based on your description, I'm wondering that you want to change a negative number in a column of data to a positive number and replace the positive number with a "-"
I did a simple test and the result is as follows:
CARER EXCESS =
VAR _1=
if(MIN('Table'[Number]) <0,MIN('Table'[Number]),0)*-1
VAR _2 = IF(_1 = 0,"-",_1)
RETURN
_2
Please feel free to correct me and provide more information if I have misunderstood you!
An attachment for your reference. Hope it helps!
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
You can probably do so using the Dynamic Formatting Strings if you have a more recent version of powerbi: https://www.sqlbi.com/articles/introducing-dynamic-format-strings-for-dax-measures/.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |