Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi !
I have 3 columns - EVENT ID, CATEGORY and LABEL
There's always ONE Primary LABEL within every EVENT, rest is Other
1 | 6 | Primary |
1 | 35 | Other |
1 | 5 | Other |
1 | 66 | Other |
2 | 1 | Primary |
2 | 2 | Other |
3 | 1 | Other |
3 | 4 | Primary |
3 | 5 | Other |
3 | 6 | Other |
4 | 888 | Primary |
5 | 1 | Primary |
6 | 1 | Primary |
7 | 66 | Other |
7 | 55 | Other |
7 | 44 | Primary |
7 | 33 | Other |
This is my desired OUTPUT. Extra Column which takes the Primary value and fills down the event with that value
1 | 6 | Primary | 6 |
1 | 35 | Other | 6 |
1 | 5 | Other | 6 |
1 | 66 | Other | 6 |
2 | 1 | Primary | 1 |
2 | 2 | Other | 1 |
3 | 1 | Other | 4 |
3 | 4 | Primary | 4 |
3 | 5 | Other | 4 |
3 | 6 | Other | 4 |
4 | 888 | Primary | 888 |
5 | 1 | Primary | 1 |
6 | 1 | Primary | 1 |
7 | 66 | Other | 44 |
7 | 55 | Other | 44 |
7 | 44 | Primary | 44 |
7 | 33 | Other | 44 |
This needs to be a calculated column
Thanks for your help !
Solved! Go to Solution.
Hi @Yggdrasill
Create a calculated column:
NewCol = CALCULATE ( DISTINCT ( Table1[CATEGORY] ); Table1[LABEL] = "Primary"; ALLEXCEPT ( TAble1; Table1[EVENT ID] ) )
Dude, that was brutally simple ! Thanks !
Hi @Yggdrasill
Create a calculated column:
NewCol = CALCULATE ( DISTINCT ( Table1[CATEGORY] ); Table1[LABEL] = "Primary"; ALLEXCEPT ( TAble1; Table1[EVENT ID] ) )
User | Count |
---|---|
119 | |
78 | |
58 | |
52 | |
46 |
User | Count |
---|---|
170 | |
117 | |
63 | |
58 | |
51 |