Forum Discussion
Track Power Query value change and show in table visualization
Hello,
I have the following table loaded in Power Query and the data is refreshed from an Excel spreadsheet every day. The problem is that for some Document ID's, the invoice amount is not correct due to missing invoices, so the missing invoiced amount needs to be added manually in the dashboard. So, i would currently add a new step in Power Query. For example:
= Table.InsertRows(#"Renamed Columns",List.PositionOf(#"Renamed Columns"[Document ID],4060)+1,{[Document ID=4060, #"Invoice amount"=1584.98]})
I am not sure if this is the best approach to this problem but how to track those manual value changes in Power Query and indicate in the table visualization next to the value that it was changed manually? I am thinking maybe using conditional formatting to show an icon next to the value if it was manually edited in Power Query? Is this possible? Any help is much appreciated!
| Document ID | Invoice amount |
| 3998 | 2439.17 |
| 4050 | 1176.56 |
| 4050 | 791024.45 |
| 4060 | 1810 |
| 4139 | 12352.03 |
| 4145 | 81045.86 |
| 4149 | 545.95 |
| 4157 | 4513.88 |
| 4160 | 52011 |
| 4160 | 542.4 |
| 4164 | 9592.56 |
| 4166 | 87441.67 |
| 4187 | 6793.62 |
| 4187 | 33938.1 |
| 4187 | 4390 |
| 4187 | 135385 |
| 4248 | 154310 |
| 4314 | 4598.01 |
| 4474 | 78597 |
| 4481 | 94904.73 |
| 4487 | 372359.04 |
| 4495 | 1144 |
| 4685 | 734125.54 |
| 4688 | 4073682 |
| 4691 | 175683 |
| 4813 | 84100 |
| 4832 | 437233 |
| 4997 | 1636831 |
Hi Anonymous ,
You can use enter data to create a new table and append the original table with the enter data table. Then use the following code to add a icon via conditional formatting.
Measure = IF(SELECTEDVALUE(manual[Document ID]) in VALUES('Table'[Document ID]),"https://emoji-uc.akamaized.net/orig/c1/d9d88630432cf61ad335df98ce37d6.png","https://emoji-uc.akamaized.net/orig/0d/5232f11b284da4884088de94d0da1d.png")Result:
Pbix in the end you can refer.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 Replies
- MahyarTFMemorable Member
Hi,
Your solution is perfect,
I think maybe you could use below :
- You add the Status column to the current table (including 'Existing' or what ...)
- then create another table for the records that you added manually (that is come from a separate Spreadsheet) and filled the status field with 'Updated' or 'Manually' or ...)
- Then Append these two tables and use the third column (Status) in your visuals and Dax codes.
Appreciate for Kudos
- v-chenwuz-msftCommunity Support
Hi Anonymous ,
You can use enter data to create a new table and append the original table with the enter data table. Then use the following code to add a icon via conditional formatting.
Measure = IF(SELECTEDVALUE(manual[Document ID]) in VALUES('Table'[Document ID]),"https://emoji-uc.akamaized.net/orig/c1/d9d88630432cf61ad335df98ce37d6.png","https://emoji-uc.akamaized.net/orig/0d/5232f11b284da4884088de94d0da1d.png")Result:
Pbix in the end you can refer.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.