Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I am trying to calculate cumulative quantities over time, but the issue I am facing is that when there are no transactions on a particular day, the measure doesn't consider the last calculated value. How can I solve this.
The below is the measure I am using and explination:
'Main Hastings-N22 Main Transaction (3)' is my transaction table with Item#, TRANSACTION_DATE and QTY as colums. QTY has positive and negative values, If the transaction is adding to the inventory the value will be positive and vise-versa.
'Main Haistings-N22 First Available' is a table that holds my first ever inventory and has Item#, AVAILABLE_QTY as columns. Item# holds unique values.
The values circuled are the result of the measure and they are correct but the rest are the values from my 'Main Haistings-N22 First Available'[AVAILABLE_QTY]) and in this case it should stay 5000 till 12/6/2023, but in this period I have no transactions.
Solved! Go to Solution.
i would suggest to create w valid dimdate table, --> https://radacad.com/create-a-date-dimension-in-power-bi-in-4-steps-step-1-calendar-columns
STEP 2 : link this table to the transaction date column to both tables fact tables you have in your model
STEP 3 : drag and drop date column from dimdate table to the visual instead of the one from the existing table
step3 :
i would suggest to create w valid dimdate table, --> https://radacad.com/create-a-date-dimension-in-power-bi-in-4-steps-step-1-calendar-columns
STEP 2 : link this table to the transaction date column to both tables fact tables you have in your model
STEP 3 : drag and drop date column from dimdate table to the visual instead of the one from the existing table
step3 :