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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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 :
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 38 | |
| 36 | |
| 29 | |
| 28 |
| User | Count |
|---|---|
| 126 | |
| 88 | |
| 78 | |
| 66 | |
| 65 |