Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

See counts by selected priority channel

Hi,

I want to know the audience count based on selected channel priority in Power Bi desktop. Audience have given their choice of movie genre, one person can like one or more than one genre. Genre are Action, Drama, Comedy and Sci fi.

Sample Data

Audience Id    Action      Drama     Comedy     Sci fi     
100YESYESNONO
101YESNONOYES
102NOYESNONO
103NOYESYESYES
104YESYESNONO
105YESYESYESNO
106YESNOYESNO
107NOYESNONO
108YESYESYESYES
109NONOYESYES
110YESYESNONO

Consider there are 4 filters:  

Priority 1             Priority 2              Priority 3                  Priority 4                  
Action DramaComedySci fi 

User wants to know the count of movie audiences based on priority selected. If Priority 1 is "Action" then Action should not come in other priority options. Based on selected priority, User want to know the count of different audiences who are selected.

Output: 

Action: 7, Drama: 3, Comedy: 1, Sci fi: 0

Note: Output counts should be mutually exclusive and Priority can be none also. If Priority 3 is none then next Priority 4 will be none automatically.

 

Thanks,

Abhinay

  • Hi Anonymous 

    I create four measures and show the correct result:

    Please let me know if selecting "Drama", then is the count of each genre like below?

    Best Regards
    Maggie
    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 Replies