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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
froxas
Helper II
Helper II

make workload scheduler

Hi,

 

Here is production of furniture.

I have in database operations. I can sum total hours needed to make orders for each operations. also i have resources availability per operation ped day.

Annotation 2020-08-09 103944.png

 

What i need to do, i need to convert it to matrix like below, where first column is operations, header is days and cells shows how many days for each operation is already occupied.

It means i need to make a calendar (lets say 1-2 moth infront) and according resources availability per day fill all these days with workload.

 

Annotation 2020-08-09 103955.png

 

do somebody have ideas how it could be accomplished?

 

link to sample data 

5 REPLIES 5
v-kelly-msft
Community Support
Community Support

Hi @froxas

 

What does each cell in the matrix colored represent for?

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Fowmy
Super User
Super User

@froxas 

Please add below measure:

I have added a calendar table but not linked to your orders table as you do not provide a date column there. Anyhow, check the following works for you.

You can download the file: HERE

Measure = 
VAR DP = 
    ROUNDUP(
        DIVIDE(
            SUM(Orders[WorkScope]),
            MAX(Operations[ResourcesInHoursPerDay])
        ),
        0
    )
VAR D = SELECTEDVALUE('Calendar'[Date])
VAR C = 
    CALCULATE(
        COUNTROWS('Calendar'),
        'Calendar'[Date] <= D,
        ALL('Calendar')
    )
RETURN

IF(
    DP < C,BLANK(),C
)

 

Fowmy_0-1596973762295.png

 

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon on the right if you like this reply 🙂

YouTube, LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Fowmy
Super User
Super User

@froxas 

Can you share some sample data and the expected result?
You can save your files in OneDrive, Google Drive, or any other cloud sharing platforms and share the link here.
____________________________________
How to paste sample data with your question?
How to get your questions answered quickly?

_____________________________________
Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon on the right if you like this reply 🙂

YouTube, LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

@Fowmy  added sample data

 

link to sample data 

@froxas 

You need to have a column in the Orders table for the date that will indicate when each activity took place. This way, you can create a calendar a link with the date to visual in a matrix.

Fowmy_0-1596964178348.png
You base measure needs to be modified as :

DaysPlanned = 
ROUNDUP(
    DIVIDE(
    SUM(Orders[WorkScope]),
    MAX(Operations[ResourcesInHoursPerDay])
),
0)



________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon on the right if you like this reply 🙂

YouTube, LinkedIn

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors