Forum Discussion

Oiled's avatar
Oiled
Regular Visitor
3 years ago
Solved

Only counting unique users when selecting multiple devices in a slicer

Hi, I'm pretty new to PowerBI so I don't really have a clue were to start with this.

 

First off, in my data I have 

A list of all our users with all of their info and an ID code so we can identify them. (User ID, Area)

Another list of the same users with a row for each devices that they own. (Device)

 

I'm want to have a slicer to select which devices will be counted but, when we select multiple devices it needs to not count a user twice so we can have the number of unique users that can participate with the selected hardware. It would probably need some sort of hierarchy to decide which device to count and not to count and I'm not familiar to a way to do that.

 

 

User List:

User IDContientName...
1EURJohn...
2NAJane...
3NADave...
4ASIAScott...

 

Device List:

User IDDevices

1

Phone
1Console
1PC
2PC
2Phone
3Phone
4Console

 

  • Your second table is sufficient for that.  Add the Devices column to a table visual and then add the User ID column and aggregate it as "Count (Distinct)".  Then use the filter pane ("Filters on this visual") to choose your desired device combination.

1 Reply

  • Your second table is sufficient for that.  Add the Devices column to a table visual and then add the User ID column and aggregate it as "Count (Distinct)".  Then use the filter pane ("Filters on this visual") to choose your desired device combination.