Hi there.
Thanks in advance. I am having a problem while calculating opening and closing balance on the PBI from the following table.
Hi @junaidch278 to provide clear solution in some way, the amounts as input and output should be clear.
In general, are these inputs for amount like stock, etc cash balance or like income, etc salary.
What about wanted output? From picture stock is wanted to be shown, like opening balance +/- inputs / outputs = ending balance, right?
Give us some example data as input and expected output per X (x could be date, product key...)
HI @some_bih
I have the requirement where user can select any date. it can be a single day or a week or a couple of months. and the solution you perposed is workable for month, quarter and year opening and closing balance.
i'm looking for a way to select dynamic minmum date so i can utilize the running totals to get the correct results.
please reach out to me if you need aditional clarity.
Hi @junaidch278 you should probably use functions OPENING/CLOSINGBALANCE* for DAX. check link
https://www.sqlbi.com/tv/closingbalancemonth-closingbalancequarter-closingbalanceyear-dax-guide/