Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ak77
Post Patron
Post Patron

Sign change

Hi All,

 

i need a help.. i have the below table where i have a measure QTD_MS_Change doing a calculation. i need to change the sign (+ if -) and (- to +)  for all the rows which has Benchmark in Asset/SubClass benchmark Columns

 

For Ex: 1.48 to -1.48 , 3.44 to -3.44, -4.54 to 4.54 and so on.  is there a way to achive this. Please help

 

 

ak77_0-1692641197883.png

 

7 REPLIES 7
parry2k
Super User
Super User

@ak77 when you do ask for a question, please follow some guidelines, just sharing the screenshot and asking the question doesn't help. Please spend five minutes and read this post to get your answer quickly.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

In this case, I assumed QTD_MS_Change is a measure.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k , Please find the sample PBIX. i want to achieve the difference between previous 2 rows and display in the 3rd row. currently it is giving the sum. is it possible to get the difference For Ex: 4.37-2.95=1.42 and so on. Thanks again for the help

https://drive.google.com/file/d/1wT79uscBn5IBLd1nrbYi9vulHgzYBx_D/view?usp=sharing

ak77_0-1692683255799.png

 

 

 

Thanks for the link. will check

ak77
Post Patron
Post Patron

New Measure = 
IF ( CONTAINSSTRING ( SELECTEDVALUE ( YourTable[YourColumn] ), "Benchmark" ), -1, 1 ) 
* [Your Measure] 
@parry2k , Thanks .  My question is how can i use [Your Measure] in [New measure] in the above expression..
 
when i try creating [New measure] and try to access [Your Measure] to use it in the formula.. it does not show up 😞
parry2k
Super User
Super User

@ak77 wrap it with IF condition:

 

New Measure = 
IF ( CONTAINSSTRING ( SELECTEDVALUE ( YourTable[YourColumn] ), "Benchmark" ), -1, 1 ) 
* [Your Measure] 


Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

ak77
Post Patron
Post Patron

@parry2k , Thanks for reply...tried that..but it is changing sign for all the values. i need it only for rows which has benchmark. if i try to use a new measure to put a condition.. i am not able to use measure within measure

parry2k
Super User
Super User

@ak77 multiply it with -1 ([Measure] * -1)



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.