Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello - I am trying to create a new column that will contain a fraction that when summed, it will equal the total number of distinct counts for a column. In the Example Below, the Value I am trying to create would be .33333 because there are 3 ABC's and when summed it would equal 1 (1 distinct count). ABD would be .5 since there are 2 ABDs. If there were 4 values it would be .25, etc.
Column 1 | Value I am trying to create |
ABC | .3333 |
ABC | .3333 |
ABC | .3333 |
ABD | .5 |
ABD | .5 |
Solved! Go to Solution.
A new column = 1/ countX(filter(Table, [Column 1] = earlier([Column 1])), [Column 1])
Earlier, I should have known Earlier: https://youtu.be/CVW6YwvHHi8
A new column = 1/ countX(filter(Table, [Column 1] = earlier([Column 1])), [Column 1])
Earlier, I should have known Earlier: https://youtu.be/CVW6YwvHHi8
User | Count |
---|---|
124 | |
108 | |
99 | |
62 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |