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
Hi,
I think there has to be an easy solution to my problem.
I have a column where almost every value appears two times with a few exeptions:
ID_A
ID_A
ID_B
ID_B
ID_C
ID_C
ID_D
ID_E
ID_E...and so on
In this example i want to get rid of ID_D. To do so I wanted to create a new column in the Query Editor that works like a Count IF Formula in Excel so that I can filter out all ID's with just one entry.
But I'm stuck here somehow 😞
Solved! Go to Solution.
Hi @herbemischung,
In the Query Editor you should be able to Group BY Your ID Column, the default is a column with the count of the rows, and then also add the All Rows as the second aggregation column.
Then filter the Count column to those that are not one.
Remove the Count Column
Expand the Column that contains tables (the All Rows column)
Hi @herbemischung,
In the Query Editor you should be able to Group BY Your ID Column, the default is a column with the count of the rows, and then also add the All Rows as the second aggregation column.
Then filter the Count column to those that are not one.
Remove the Count Column
Expand the Column that contains tables (the All Rows column)
Thank you, this really did the job 🙂
If you really want a column and not a measure, then you can do it by doing something along the lines of:
Column = CALCULATE(COUNT(Table[ID]),FILTER(ALL(Table),Table[ID]=EARLIER(Table[ID])))
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |