Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All,
I would like to create a 3rd column in my table summarizing the number of time the value in column B is repeated based on ID column A such as the below:
ID | Value | Result column |
ID1 | A | 3 |
ID1 | A | 3 |
ID2 | A | 1 |
ID3 | B | 1 |
ID1 | B | 2 |
ID1 | B | 2 |
ID3 | A | 2 |
ID3 | A | 2 |
ID4 | A | 1 |
ID1 | A | 3 |
As a second step, I will be able to say per ID what is the most frequent value using max formula.
Any one can help to find the right formula to create the column C in Power BI?
Thanks,
Louise
Solved! Go to Solution.
Hi @Anonymous ,
Create a Calculated Column
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
@Anonymous , Create a new column
Result = countx(filter(table,[ID]=earlier([ID]) && [Value]=earlier([Value])),[ID])
@Anonymous , Create a new column
Result = countx(filter(table,[ID]=earlier([ID]) && [Value]=earlier([Value])),[ID])
Hi @Anonymous ,
Create a Calculated Column
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |