Forum Discussion
Inventory Beginning and Ending Balance
Hi selimovd ,
I got this result using your DAX formula.
I think we need to total the amount for "Beg Balance" is < "First Date Filter" and "End Bal" is <= "End Date Filter
I also attach my pbix file.
Thank you.
- selimovd4 years ago
Most Valuable Professional
Hey Olwin ,
in this case you have to change the posting date to equal the exact minimum date, like this:
BegBal = VAR first_date = [FirstDateVisible] RETURN CALCULATE( SUM( VE[Cost Amount] ), VE[Posting Date] = first_date )Also you have to make sure your the relationship between the Dates and the fact table has to be 1:n with single filter direction:
Then it should work like you want.
If you need any help please let me know.If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍Best regardsDenisBlog: WhatTheFact.biFollow me: twitter.com/DenSelimovic- Olwin4 years agoFrequent Visitor
Hi selimovd ,
I still unable to get my expected result.
My founding is I need to create 1 more date table and not to relate it in any table, just to get the "Start Date" and "End Date" for all records with the same value on my date slicer.
Please find below link to find my revised pbix file.
I add new measure FirstDateVisibleNEW and LastDateVisibleNEW which refer to my new Date table. (You can see that this 2 measure is the same value as my date slicer).
Kindly please advise if there is any other solution to achive this 🙂
Thank you.
- selimovd4 years ago
Most Valuable Professional
Hey Olwin ,
what exactly is not working?
You don't need a second date table that is not connected to any other tables. As I mentioned in the last reply, you have to set the filter direction between date table and VE table to "single". Then the report is working properly.
If you need any help please let me know.If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍Best regardsDenisBlog: WhatTheFact.biFollow me: twitter.com/DenSelimovic