Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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])))
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
69 | |
68 | |
40 | |
29 | |
26 |
User | Count |
---|---|
89 | |
49 | |
44 | |
38 | |
37 |