Forum Discussion
Grouping the measures
- Anonymous8 years ago
Not sure if it could help. If you don't have much package list, you can try to get a following Power Bi report.
Use an individual sheets to store packages info
Load the user and package sheets into Power BI and create a column to find out user-package mapping
BelongsTo = IF(CONTAINS(package,package[package1],User[Channel]),"Package1",IF(CONTAINS(package,package[package2],User[Channel]),"Package2",IF(CONTAINS(package,package[package3],User[Channel]),"Package3")))
After that you will be get a report to show package information.
Hi Yuliana v-yulgu-msft
Sorry for the confusion. Let me reframe the question. Here is the new table.
| User | Channel | |||
| Ram | Star sports | |||
| Kiran | star movies | |||
| Ram | star gold | |||
| Ram | star plus | package1 | package2 | package3 |
| Aditya | star gold | Star sports | Star sports | Star sports |
| Aditya | hbo | star movies | star movies | star movies |
| Ram | star movies | star gold | star gold | star gold |
| Kiran | siti | star plus | star plus | star plus |
| Aditya | bbc | star music | star music | star music |
| Aditya | zee | hbo | hbo | |
| Rahim | bbc | republic | republic | |
| Khan | republic | bbc | ||
| Rahim | classic | zee | ||
| Rahim | star gold | siti | ||
| Khan | star music | classic | ||
| Khan | star gold | |||
| Khan | hbo | |||
| Khan | star movies | |||
| Rahim | star music |
In this table, Ram is only using the channels from "Package1", So he should be mapped with package1. In the same way,
Kiran - package3
Rahim - package3
Khan- package 2
Aditya - package3
The final output I am expecting is
Package1 - Ram
Package2 - Khan
Package3 - Rahim, Aditya, Kiran
Thanks for the help,
Rakesh.
Not sure if it could help. If you don't have much package list, you can try to get a following Power Bi report.
Use an individual sheets to store packages info
Load the user and package sheets into Power BI and create a column to find out user-package mapping
BelongsTo = IF(CONTAINS(package,package[package1],User[Channel]),"Package1",IF(CONTAINS(package,package[package2],User[Channel]),"Package2",IF(CONTAINS(package,package[package3],User[Channel]),"Package3")))
After that you will be get a report to show package information.