Forum Discussion

NBU_FFF's avatar
NBU_FFF
Icon for Helper I rankHelper I
1 year ago

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