Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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êsCheck out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 104 | |
| 81 | |
| 66 | |
| 50 | |
| 45 |