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
Anonymous
Not applicable

How do I get a positive sign added to a column

I’m trying to add a conditional column that says if the value is greater than 0 (and therefore not negative) then add a + sign infront if the value, but if negative don't 

 

at the minute it's just adding a column with + and no value after it?

Does anyone have any ideas how to do this so it includes the value?

3 ACCEPTED SOLUTIONS
Pragati11
Super User
Super User

Hi @Anonymous ,

 

Try creating a column as follows:

NewCol = IF([YourColumn] > 0, CONCATENATE("+", [YourColumn]), [YourColumn])

 

Replace [YourColumn] in above DAX with your actual column from your table.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

BA_Pete
Super User
Super User

Hi @Anonymous ,

 

Try this:

newValue = 
FORMAT(
    [yourValuesColumn],
    "+0.0;-0.0;0.0"
)

Pete 



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

 

You also could change format of the column rather than create a new column.

 
+#,#.#;-#,#.#;0

1.PNG2.PNG

Use custom format strings in Power BI Desktop

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

 

You also could change format of the column rather than create a new column.

 
+#,#.#;-#,#.#;0

1.PNG2.PNG

Use custom format strings in Power BI Desktop

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BA_Pete
Super User
Super User

Hi @Anonymous ,

 

Try this:

newValue = 
FORMAT(
    [yourValuesColumn],
    "+0.0;-0.0;0.0"
)

Pete 



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Pragati11
Super User
Super User

Hi @Anonymous ,

 

Try creating a column as follows:

NewCol = IF([YourColumn] > 0, CONCATENATE("+", [YourColumn]), [YourColumn])

 

Replace [YourColumn] in above DAX with your actual column from your table.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Fowmy
Super User
Super User

@Anonymous 

Try 


 FORMAT([Column],"+0.0")

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon on the right if you like this reply 🙂

YouTube, LinkedIn
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

Try Measure like this

Measure = 
"+" & SUM( 'Table'[Column1] )

Note, this measure will return text 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn


 

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.