Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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])))
User | Count |
---|---|
139 | |
113 | |
103 | |
73 | |
63 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |