Forum Discussion
Monthly inventory
- 9 years ago
Hi mikaro,
If you are finding cummulative value, it should be:
cumulative qty = CALCULATE( SUM( Transactions[value] ), filter( ALL( Dates[Date]),Dates[Date] <=MAX(Dates[Date]) && year(Dates[Date])= year(MAX(Dates[Date])) ))and mapping relationship when using dates table
if it's not your expectation, hope you describe your expectation resuslt again so i could quickly figure out solution.
Hi mikaro,
The date field in slicer is from Dates table or from your fact table? Did you create calculated measure or column?
Hi tringuyenminh92!
Date field in slicer is from Dates table and all functions in my previous post are calculated measures. For instance if i pick 31.3.2016 from slicer my calculated measure "choice" equals to 31.3.2016. The only calculated column in my project atm is season that is located in the Dates table (31.3.2016 -> 03-16).
Thanks in advance for helping me out!
- tringuyenminh929 years agoMemorable Member
Hi mikaro,
Maybe there are something wrong in filter
Dates[Date]);Dates[Date] <= DATE(YEAR([choice];MONTH([choice];DAY([choice])
Could you please share pbix and sample data so i could analyze it? And i'm not sure that i understand your expectation in choosing specific date. Could you explain it again?
- mikaro9 years agoFrequent Visitor
Hi tringuyenminh92,
Here are the files ppix and transactions.
I added some examples and text boxes that will hopefully explain and clarify this problem even more. If they dont help please let me know and i'll try to explain again.
Thanks!
- tringuyenminh929 years agoMemorable Member
Hi mikaro,
If you are finding cummulative value, it should be:
cumulative qty = CALCULATE( SUM( Transactions[value] ), filter( ALL( Dates[Date]),Dates[Date] <=MAX(Dates[Date]) && year(Dates[Date])= year(MAX(Dates[Date])) ))and mapping relationship when using dates table
if it's not your expectation, hope you describe your expectation resuslt again so i could quickly figure out solution.