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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Data_Struggles_
Frequent Visitor

Queuing Theory Model implementation in PowerBI

Does anyone have experience with Queuing theory and might be able to point me in the right direction as to how to implement it in DAX tables/measures in PowerBI? We have a need for Headcount outputs based upon inputs of Arrival Rate, Service Rate, and Average Wait Time; we've used an Excel add-in for Erlang for a while, but find that at low-volume it is highly inaccurate. I've looked into Queuing Theory a bit(even used ChatGPT for some assistance lol) but hit dead ends. Is there anyone who has worked with queuing theory who can point me in the right direction?

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

When you try to implement this in Power Query or DAX you soon realize that neither support the concept of mutable variables, and neither have memory/state storage capacities.  You will have to resort to Python or R scripts for anything but the most basic cases.  I once worked on a scenario for a bakery (incoming orders through the day versus machine availability and order urgency) and while possible with List.Accumulate and some dirty tricks  it was a nightmare to program.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

When you try to implement this in Power Query or DAX you soon realize that neither support the concept of mutable variables, and neither have memory/state storage capacities.  You will have to resort to Python or R scripts for anything but the most basic cases.  I once worked on a scenario for a bakery (incoming orders through the day versus machine availability and order urgency) and while possible with List.Accumulate and some dirty tricks  it was a nightmare to program.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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