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
Roym
Helper IV
Helper IV

Adjust value for one row

I have a dashboard where the data is updated from another system every other hour. This includes a large table with data that is used in the dashboard. Now there is one value (one column) for one row that is wrong and should be adjusted. Unfortunately I can not update it in the source system so I need to adjust in the dashboard. As the source data is updated every other hour I can not adjust the source file but need to adjust in PBI. Is there a way to maybe do this in PowerQuery? I'm so far unable to think about a good option that would work.

 

Current table (which has 500+ rows like this):

IDNameDateYear
12380Issue12023-03-102023

 

What it should be:

IDNameDateYear
12380Issue12024-03-102024
1 ACCEPTED SOLUTION

You can create a new column name using M-Code in advanced editor, make sure you re[;ace YourSourceHere with the actual source step of your query 

 

let
Source = YourSourceHere,
#"Added Conditional Column" = Table.AddColumn(Source, "AdjustedDate", each if [ID] = 12380 then #date(2024, 3, 10) else [Date], type date),
#"Removed Original Column" = Table.RemoveColumns(#"Added Conditional Column",{"Date"}),
#"Renamed Columns" = Table.RenameColumns(#"Removed Original Column",{{"AdjustedDate", "Date"}})
in
#"Renamed Columns"




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

4 REPLIES 4
bhanu_gautam
Super User
Super User

@Roym , Does value need to be changed for this particular ID or for all rows




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Only this specific id. The rest of the rows/id's should be left unchanged

You can create a new column name using M-Code in advanced editor, make sure you re[;ace YourSourceHere with the actual source step of your query 

 

let
Source = YourSourceHere,
#"Added Conditional Column" = Table.AddColumn(Source, "AdjustedDate", each if [ID] = 12380 then #date(2024, 3, 10) else [Date], type date),
#"Removed Original Column" = Table.RemoveColumns(#"Added Conditional Column",{"Date"}),
#"Renamed Columns" = Table.RenameColumns(#"Removed Original Column",{{"AdjustedDate", "Date"}})
in
#"Renamed Columns"




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Awesome, this works perfectly! Learned something about M-code as well, thanks!!

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.