Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi,
I have two columns [controller number] and [meter reader] in my Table.
Usually the values of the column meter reader are continous. But if the value remains the same for a certain value in the Controller number column, the string "ERROR" should be appear in a new column. The main problem with my Command is that if a value from the meter reader column appears for two different values from the controller number column, an "Error" is also returned as you can see in my example:
controller number | meter reader | err |
5 | 23650 | |
5 | 23703 | |
5 | 23723 | |
5 | 23723 | ERROR |
5 | 23723 | ERROR |
8 | 56230 | |
8 | 56742 | |
8 | 56742 | ERROR |
13 | 456900 | |
13 | 457100 | |
18 | 23470 | |
18 | 23650 | ERROR |
18 | 23899 |
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
29 | |
18 | |
15 | |
7 | |
6 |