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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
How do I replace all but one repeating/duplicate values in overtime column with null? There are no unique columns to cross reference to.
Thanks.
https://i.imgur.com/SELU4wz.png
https://i.ibb.co/9sfJrC2/Untitled.png
Solved! Go to Solution.
Oh, well if you had an index it would look something along the lines of:
New Column =
VAR __Value = 'Table'[Overtime]
VAR __CurrentIndex = 'Table'[Index]
RETURN
IF(MAXX(FILTER('Table',[Index] = __CurrentIndex - 1),[Overtime])=__Value,BLANK(),__Value)
Can this be done in Query Editor? replacing the subsequent duplicated value with null
Create an Index column in Power Query editor. Now you have something to reference.
I am new to power BI. What would the DAX formula for replacing duplicate values look like?
Oh, well if you had an index it would look something along the lines of:
New Column =
VAR __Value = 'Table'[Overtime]
VAR __CurrentIndex = 'Table'[Index]
RETURN
IF(MAXX(FILTER('Table',[Index] = __CurrentIndex - 1),[Overtime])=__Value,BLANK(),__Value)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 14 | |
| 5 | |
| 5 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 10 | |
| 10 | |
| 6 | |
| 6 |