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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
davidnsquires
New Member

Sub-allocation of categories

Hi, I'm not sure if this is possible or not. We have a set of data that is allocated to business units. For the purposes of this post let's say they are the days Monday to Friday. However, in some cases an entry may be allocated to multiple days.

 

For the output we want the graph to just be split into the five categories (I.e. Monday to Friday). If an entry was "Monday and Tuesday", for example, we would want it 50% allocated to Monday and 50% to Tuesday. If there were three we'd want it allocated 1/3 to each and so on. Is there a way to do that?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@ryan_mayu , thanks for your concern about this case. I tried to create a sample data myself based on the user's requirement and implemented the result. Please check if there is anything that can be improved. Here is my solution:


@davidnsquires , if this sample data is structurally different from the one you are using, please do not hesitate to mention it and I will modify it!

 

I created sample data based on your needs and established relationships between them.

vhuijieymsft_0-1712717032396.png
vhuijieymsft_1-1712717032398.png

 

Select Split column for the Weekday column of the Product table in Power Query.

vhuijieymsft_2-1712717159969.png
vhuijieymsft_3-1712717159970.png

 

Select three columns of Weekday to perform the Unpivot operation.

vhuijieymsft_4-1712717176806.png

 

Delete the Attribute column and the cleaned data is as shown in the figure below.

vhuijieymsft_5-1712717176806.png

 

Create two calculated columns:

Count = COUNTROWS(FILTER('Product', 'Product'[ProductID] = EARLIER('Product'[ProductID])))
Percentage = 1 / [Count]

 

The page effect is as shown below:

vhuijieymsft_6-1712717201187.png

 

pbix file is attached.

 

If you have any further questions please feel free to contact me.

 

I would be grateful if you could provide me with sample data for testing, please remove any sensitive data in advance.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@ryan_mayu , thanks for your concern about this case. I tried to create a sample data myself based on the user's requirement and implemented the result. Please check if there is anything that can be improved. Here is my solution:


@davidnsquires , if this sample data is structurally different from the one you are using, please do not hesitate to mention it and I will modify it!

 

I created sample data based on your needs and established relationships between them.

vhuijieymsft_0-1712717032396.png
vhuijieymsft_1-1712717032398.png

 

Select Split column for the Weekday column of the Product table in Power Query.

vhuijieymsft_2-1712717159969.png
vhuijieymsft_3-1712717159970.png

 

Select three columns of Weekday to perform the Unpivot operation.

vhuijieymsft_4-1712717176806.png

 

Delete the Attribute column and the cleaned data is as shown in the figure below.

vhuijieymsft_5-1712717176806.png

 

Create two calculated columns:

Count = COUNTROWS(FILTER('Product', 'Product'[ProductID] = EARLIER('Product'[ProductID])))
Percentage = 1 / [Count]

 

The page effect is as shown below:

vhuijieymsft_6-1712717201187.png

 

pbix file is attached.

 

If you have any further questions please feel free to contact me.

 

I would be grateful if you could provide me with sample data for testing, please remove any sensitive data in advance.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

ryan_mayu
Super User
Super User

could you pls provide some sample data? 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors