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 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!
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 |
---|---|
104 | |
95 | |
80 | |
67 | |
62 |
User | Count |
---|---|
147 | |
109 | |
107 | |
85 | |
63 |