Forum Discussion
IsmaelConsult
3 years agoFrequent Visitor
Wrong Total
How can i fix my total in a matrix. The expresions are: Saldos:= CALCULATE(SUM(Saldos[Entrada])-SUM(Saldos[Saida])) Estoque:= VAR DATAINI=FIRSTDATE(ALL('Calendar'[Data])) VAR ...
IsmaelConsult
3 years agoFrequent Visitor
Yes, man! You are correct.
I really appreciate your help.
But my real intention is to get the stock balance from a previous date as well. For example, if the user selects March 2022, they should be able to see the exact stock balance from March 2022 of the previous year.
You get it ?
Here is the link to my model again. I have added some slicers for the year and month.
Thanks for your time.
IsmaelConsult
3 years agoFrequent Visitor
Here is the link to my model again. I have added some slicers for the year and month.
Thanks for your time.
https://drive.google.com/file/d/1SRLaszxsVbKNi70vtu7A9QqzRsVd9tr4/view?usp=share_link
- Ashish_Mathur3 years agoSuper User
Hi,
Use this measure to get the stock value in the same month last year
Inventory value in SPLY = CALCULATE([Inventory value],SAMEPERIODLASTYEAR('Calendar'[Data]))Hope this helps.