Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
rakeshb
Frequent Visitor

Grouping the measures

Hello,

 

I came across a scenario in which I need to assign every user with the subscription packages. 

For example, 

UserChannel   
RamStar sports   
Kiranstar movies   
Ramstar gold   
Ramstar plus   
Adityastar goldpackage1package2package3
AdityahboStar sportsStar sportsStar sports
Ramstar moviesstar moviesstar moviesstar movies
Kiransitistar goldstar goldstar gold
Ramrepublicstar plusstar plusstar plus
Adityabbcstar musicstar musicstar music
Adityazee hbohbo
Rambbc republicrepublic
Kiranbbc  bbc
Rahimbbc  zee
Khanbbc  siti
Rahimclassic  classic
Rahimstar gold   
Khanstar music   
Khanstar gold   
Khanhbo   
Khanstar movies   
Rahimstar music   

 

I need to assign the packages individually for every user, based on the package category. In this example, rows in the packages are very low, But in my case, they are very large. Please help me with the proper solution.

 

Thanks,

Rakesh

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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

 

2018-03-13_15-48-32.png

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")))

2018-03-13_15-52-44.png

 

 

After that you will be get a report to show package information.

2018-03-13_15-55-21.png

 

 

 

 

 

 

View solution in original post

3 REPLIES 3
v-yulgu-msft
Employee
Employee

Hi @rakeshb,

 

Could you please describe "assign the packages individually for every user, based on the package category" with examples? I don't know how to assign. Besides, please show us you desired output.

 

Regards,

Yuliana Gu

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

Hi Yuliana @v-yulgu-msft

 

Sorry for the confusion. Let me reframe the question. Here is the new table.

 

UserChannel   
RamStar sports   
Kiranstar movies   
Ramstar gold   
Ramstar pluspackage1package2package3
Adityastar goldStar sportsStar sportsStar sports
Adityahbostar moviesstar moviesstar movies
Ramstar moviesstar goldstar goldstar gold
Kiransitistar plusstar plusstar plus
Adityabbcstar musicstar musicstar music
Adityazee hbohbo
Rahimbbc republicrepublic
Khanrepublic  bbc
Rahimclassic  zee
Rahimstar gold  siti
Khanstar music  classic
Khanstar gold   
Khanhbo   
Khanstar movies   
Rahimstar 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.

Anonymous
Not applicable

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

 

2018-03-13_15-48-32.png

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")))

2018-03-13_15-52-44.png

 

 

After that you will be get a report to show package information.

2018-03-13_15-55-21.png

 

 

 

 

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.