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
Anonymous
Not applicable

Randomizer allocation of Data

Hi Expertise,

 

i need your help to allocate the Quality Auditors to handlers. either it can be through power Qery or with DAX function on Power BI Desktop. i tired doing it in excel but it is taking lot of time as i have over 5000 rows.

 

1. I have a list of handlers who are to be audited for the respective date.

kirankumar3065_0-1651175874300.png

 

2. i have the list of auditors who are available to audit the handers auditors numbers will changing every day depends on the availability.

kirankumar3065_1-1651175975326.png

 

3. The end result which i am expecting here is something like below 

Example for 01st May 2022 i want to assign available Auditors(03 in number) randomly to the 01st May Available Handlers (09 in number)

kirankumar3065_2-1651176216019.png

 

Not sure if this is possible in Power BI or not but if any help is much appreciated as this can save a lot of manual Hrs to me

 

Regards,

Kiran

 

1 ACCEPTED SOLUTION
9 REPLIES 9
jsaunders_zero9
Responsive Resident
Responsive Resident

Also should this distribution be even? for example on the 1st May should each audior have 3 audits each or can one auditor have 5 another have 2 and the third have 2?

Anonymous
Not applicable

Hi,

Yes the each auditor shld be assigned to equally, if there is an extra 1 or 2 Handlers than some auditors can have be assigned extra

jsaunders_zero9
Responsive Resident
Responsive Resident

Hi Kiran,

Can you share sample data in either excel or pbix? 

Thank you

Anonymous
Not applicable

Hi,

 

I don't find an option to attach the excel file hence copy pasting the data over here

 

DateHandlers
5/1/2022Adams, Ralph
5/1/2022Akulis, Oskars
5/1/2022Arif, Bilal
5/1/2022Barnard, Ian
5/1/2022Bellamy, Zara
5/1/2022Bergmann, Caroline
5/1/2022Bird, Shannon
5/1/2022Brackenbury, Lisa
5/1/2022Bradley, Neal
5/2/2022Bridgewater, Ceri
5/2/2022Calders, Kevin
5/2/2022Chamberlain, Kathryn
5/2/2022Chapman, Andrew
5/2/2022Churchman, Jasmine
5/2/2022Coleman, Sophie
5/2/2022Adams, Ralph
5/2/2022Akulis, Oskars
5/2/2022Arif, Bilal
5/2/2022Barnard, Ian
5/2/2022Bellamy, Zara
5/2/2022Bergmann, Caroline
5/2/2022Bird, Shannon
5/2/2022Brackenbury, Lisa
5/2/2022Bradley, Neal
5/3/2022Coultas, Ruby
5/3/2022Cronin, Victoria
5/3/2022Curtis, Ellie
5/3/2022Dowell, Stuart
5/3/2022Dublin, Jamie
5/3/2022Fisher, Stephanie
5/3/2022Flowers, Eleanor
5/3/2022Frankish, Ann-Marie
5/3/2022Frith, Susan
5/3/2022Gay, Linda
5/3/2022Hatcher, Alice
5/3/2022Hibbs, Tracy
5/3/2022Howe, Mollie

 

DateAuditors
5/1/2022Maria Harry 
5/1/2022Vasudev Murthy
5/1/2022Sumita Singh
5/2/2022Shanthi Vijayaraghavan
5/2/2022Pooja Raut 
5/2/2022Bindushree Panduranga
5/2/2022Meena Kumari 
5/2/2022Daphne D'Silva
5/2/2022Maria Harry 
5/3/2022Vasudev Murthy
5/3/2022Sumita Singh
5/3/2022Shanthi Vijayaraghavan
5/3/2022Bindushree Panduranga

Regards,

Kiran

Download your solution pbix for the queries.

https://1drv.ms/u/s!Akd5y6ruJhvhuWSj4FwhmGyctvkA?e=NqzDoJ 

Anonymous
Not applicable

Hi Vijay,

 

Thanks for your swift reply, when checked i see only 3 Auditors has been assigned to the Handlers every day. where in i have 3 Auditors for 1st May, 6 Auditors for 2nd May and 4 Auditors for 3rd May.

kirankumar3065_0-1651245189469.png

Is it something to do with Inserted Modulo in Handlers data?

 

kirankumar3065_1-1651245487544.png

Regards,

Kiran

 

Yes, I had forgotten to replace 3 with List.Count(ListOfAuditors).

The file has been uploaded to https://1drv.ms/u/s!Akd5y6ruJhvhuWXwAK0Dh1u8P3W3?e=vJ6LJM

Anonymous
Not applicable

Hi Vijay,

 

That was really helpful thank you so much.

Now i wanted to assign available Auditors to Handlers with the combination of Date and Product

Example the avilable Auditors for 1sth May with Product "MT Motor" has to be assigned to 1st May Handler with "MT Motor"

 

the Logic of assigning Auditors remain same but it has to be a combination of Date and Product.

kirankumar3065_0-1651600997595.png

 

Sample Data for your reference:

DateHandlersProduct
5/1/2022 Ebrahim AbrahamsMT Motor
5/1/2022 Kayla AdamsonMT Motor
5/1/2022 Zeenat AllyMT Motor
5/2/2022 Thimna RapiyaMT Motor
5/2/2022 Fadwa RasdienMT Motor
5/1/2022 Thomas FaragherAffinity Home
5/1/2022 Rob HallAffinity Home
5/2/2022 Angela HolmanAffinity Home
5/2/2022 Saffron JordanAffinity Home
5/2/2022 Keith LakemanAffinity Home
5/3/2022 Vera PotterAffinity Home
5/3/2022 Rachel RobinsonAffinity Home
5/1/2022 Leigha PowleyJL Home
5/1/2022 Mohammed QasamJL Home
5/1/2022 Jill SmithJL Home
5/2/2022 Cynthia SteadmanJL Home
5/2/2022 Umarah TariqJL Home
5/2/2022 Isabelle WhiteheadJL Home
5/3/2022 Mark BrowellJL Home
5/3/2022 Enola ClishJL Home

 

DateAuditorsProduct
5/1/2022Pooja RautMT Motor
5/1/2022Shanthi VijayaraghavanAffinity Home
5/1/2022Vasudev MurthyMT Motor
5/1/2022Shivanand KadakolJL Home
5/1/2022Bindushree PandurangaJL Home
5/1/2022Daphne D'SilvaAffinity Home
5/2/2022Meghna Gaurishankar GaudJL Home
5/2/2022Nanditha PandurangaMT Motor
5/2/2022Naveen KumarAffinity Home
5/2/2022Nikitha ManjunathJL Home
5/2/2022Deepika AnishAffinity Home
5/3/2022Keerthi KumarMT Motor
5/3/2022Kushmanjali RamachandraAffinity Home
5/3/2022Maria HarryMT Motor
5/3/2022Meena KumariJL Home
5/3/2022Touseefa NaazJL Home
5/3/2022Yashas RaajAffinity Home

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.

Top Solution Authors