Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello,
I've recently ran into an issue when creating a report.
I'm trying to create a table that looks like this (minus the incorrect by hour column):
It should calculate how many products should be produced for each timerange taking into account production plans for different lines. The thing is it's impossible to create eg. 0,571 of a product so we need to move the leftover from previous timerange to the next one and check if it gives us another product to be produced in the timerange.
I've managed to create a solution using calculated columns but it requires me to create columns for each line and doesn't seem scaleable. What would the optimal solution for this issue be?
I'm attaching the PBIX file with a more detailed explanation, dummy dataset and current unoptimal solution in the link below.
I'd really appreciate some support on this issue.
Link: https://drive.google.com/file/d/1YfGEEc_TvareO0rNfN2vtJVPh6J84Qrl/view?usp=drivesdk
Kind regards,
Damian
Solved! Go to Solution.
Hello @MFelix ,
Sorry for late answer.
I've found a solution to the issue using variables in measure
Hi @jellyjoe ,
The file is asking a password can you share it again?
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHello @MFelix ,
Sorry for late answer.
I've found a solution to the issue using variables in measure
Hi @jellyjoe ,
Glad you were abble to sort it out, don't forget to mark your answer so it can help others.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsAdvance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.