Forum Discussion
Get previous day data problem and support needed!
Dear Community,
I stuck in a challenging task by getting previous day for next day calculation.
In below table, I need to use measure to get prevoius date Balance for next day ini and use that for next day Balance calculation.
The logic for Balance:
Balance Calculation for line A=(Line A Ini+Line A Production)-(Line A Ini+Line A Production)/(Total Ini+Total Production)*Capacity
Balance Calculation for line B=(Line B Ini+Line B Production)-(Line B Ini+Line B Production)/(Total Ini+Total Production)*Capacity
Capacity: 10
I'm thinking on that solution for a week but could not settle it donw especially in dealing with those in 0 for productoin, could anyone support on that by advise a correct dax measure?
A Big Thanks!
10 Replies
- lbendlin
Super User
Seems wasteful to repeat the same numbers. What would you lose if you would drop the "Ini" column?
- lbendlin
Super User
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.
Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
- v-saisrao-msft
Community Support
Hi NBU_FFF ,
We haven’t heard back from you regarding your issue. If it has been resolved, please mark the helpful response as the solution and give a ‘Kudos’ to assist others. If you still need support, let us know.
Thank you.