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
mjuamjua
Frequent Visitor

Allocating workhours to months based on different conditions

Hi!

 

I am trying to solve this problem: Here is a sample of my dataset.

IDGermany WorkhoursItaly WorkhoursSpain WorkhoursStart DayEnd Day
Test12030040015.7.20221.12.2022
Test21012045015.8.20221.9.2022
Test3120120120015.8.20221.1.2023

I need to make a visualization where x-axis is months and y-axis is workhours per country. Something like that

mjuamjua_0-1689768073274.png

I need to divide startday-endday period into three smaller timeperiods. and allocate the workhours based on percentage: 50% for first one third, 40% for second and 10% for the last. Also it is important to notice that timeperiods can go over multiple months so the workhours needs to also divide based on months. I have tried many ways to solve this problem, but I think I am thinking this too hard and also I can't find good DAX commands to achieve the wanted result.

 

I will appreciate a lot if someone could help me!

 

1 REPLY 1
lbendlin
Super User
Super User

Please show the expected outcome based on the sample data you provided.

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.