Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi I have a single table full of user IDs. Some of them user IDs are duplicated, some have blank values and some have #N/A values (which i was hoping to filter down to a count of distinct user IDs, categorized by the type of user.
The categorized column for users displays super users vs end users using a new column, and tried to categorize the counts and show the total count (formula below)
First I tried this measure but total counts still werent correct:
Also here is a sample of the data:
TMS ID | User Type | SU TMS Program |
DLSDJFSVNWEN.KLSDJFSLLY1112 | Super User | Training Curriculum Assigned |
DLSDJFSLLNWENNT.LNWESldk219 | Super User | Training Curriculum Assigned |
19922411 | Super User | Training Curriculum Assigned |
JNTBLSDJFSS.BRldkNDNWE2912 | Super User | Training Curriculum Assigned |
CRldkNWEGMNWELLSDJFS.SUSldkN27292 | Super User | Training Curriculum Assigned |
HUGHLSDJFSS.LNWENldk12921 | Super User | Training Curriculum Assigned |
Super User | Training Curriculum Assigned | |
HNTLLNTWldkY.LSDJFSLNWEZldkBLSDJFSTH21 | Super User | Training Curriculum Assigned |
TMS ID | User Type | SU TMS Program |
End User | ||
#N/A | End User | |
#N/A | End User | |
#N/A | End User | |
11127 | End User | |
11127 | End User | |
1179222 | End User |
Solved! Go to Solution.
SWITCH(TRUE()
NOT(ISBLANK(TMSID)) || TMSID<>"#N/A"||ISBLANK(TMSPROGRAM),"End USer","Super USer"
Try this function and share your kudoes
Proud to be a Super User!
SWITCH(TRUE()
NOT(ISBLANK(TMSID)) || TMSID<>"#N/A"||ISBLANK(TMSPROGRAM),"End USer","Super USer"
Try this function and share your kudoes
Proud to be a Super User!
@VijayP Thanks for the quick reply. I am still learning and therefore not sure where I would enter a function like that. Can you guide to where functions can be defined in power bi?
Create a Calculated Column. Or Create a measure and add that measure in to the Table visual
Please sshare your kudoes
Proud to be a Super User!
@VijayP Thanks a lot! it appears to be working . I will mark this as resolved but 1 thing I am unclear on is- why this works in your custom formula, yet the way I did a custom column did not work originally?
Either way, thanks again!
Thanks , Pleasae mark this as Solution !
Proud to be a Super User!
User | Count |
---|---|
106 | |
86 | |
81 | |
73 | |
71 |
User | Count |
---|---|
112 | |
100 | |
98 | |
72 | |
66 |