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
siva3012
Helper II
Helper II

Edit data and multiply with 1000

Hi,

I have connected the data from sqlserver database to PowerBi and have uploaded the tables. I have to now change the Negative values in the Demand_Mv/Hr column into Positive by removing the Negative sign before it and multiply the data with 1000. Has anyone have edited/Changed the data  for their needs ? Can anyone provide a solution to this ?   

Electricity.jpg

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Yep, this is pretty easy to do with the Transform tab. You could also just write a line of M into the Advanced Editor.

 

Here's a couple of screenshots. Let me know if you're not clear on any of the steps.Use "standard" operationsUse "standard" operationsIf you know everything will be negative, you can simply multiply by -1000If you know everything will be negative, you can simply multiply by -1000The resultThe result

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Yep, this is pretty easy to do with the Transform tab. You could also just write a line of M into the Advanced Editor.

 

Here's a couple of screenshots. Let me know if you're not clear on any of the steps.Use "standard" operationsUse "standard" operationsIf you know everything will be negative, you can simply multiply by -1000If you know everything will be negative, you can simply multiply by -1000The resultThe result

 

@Anonymous: Thanks for the screenshot and the code in Advanced editor. It was easy for me to undesrstand as i am new to the PowerBI. 

Vvelarde
Community Champion
Community Champion

@siva3012

 

Hi, You can do all this in Query Editor.

 

With Transformation Actions.

 

Victor

Lima Peru




Lima - Peru

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.