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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Spotto
Helper IV
Helper IV

How to distribute items to people

I need some help I can't find a solution.

I have a table (Table A) that have data that is updated daily. (Product, value, etc.)

In another table (Table B) I have analyst information (Name, registration, etc)

 

I needed to create a way for POWER BI to count the amount of products (table A) and distribute it in equal parts to each analyst (table B)

 

Spotto_0-1664476673877.png

Any idea how to do this in power query or Dax?

Thank you for your help

1 ACCEPTED SOLUTION

Hi @Spotto ,

 

So what you could do in that case is divide Index/Number of Lines per analyst and then round up the result. This would give you an index by group that you could use as a GUID for the analyts. Merge in an anayst table and that should give you the split you want.

 

davehus_0-1664526402430.png

Updated attached included.

 

Did I help you today? Please accept my solution and hit the Kudos button.

 

 

View solution in original post

3 REPLIES 3
davehus
Memorable Member
Memorable Member

Hi @Spotto ,

 

Please see attached solution in powerquery. Open editor.

Count Rows in Table

Divide by Number of Analysts

Add Index

If Index <= Divided Rows then Analyst A else if Index <= Divide Rows *2 then Analyst B else Analyst C etc. 

You can do the additional transformations as required

 

Hope this helps.

Did I help you today? Please accept my solution and hit the Kudos button.

Thanks a lot for the help. I liked your solution in power query but my analyst base has 50 lines I would have to put 1 by 1 in the if condition, it will be too big.

Hi @Spotto ,

 

So what you could do in that case is divide Index/Number of Lines per analyst and then round up the result. This would give you an index by group that you could use as a GUID for the analyts. Merge in an anayst table and that should give you the split you want.

 

davehus_0-1664526402430.png

Updated attached included.

 

Did I help you today? Please accept my solution and hit the Kudos button.

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.