Forum Discussion
Display sum only for max Inventory available date
gardas_swathi , refer if my Week blog can help, it uses week rank. The rolling formula is available in blog or comments
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123
HI Amit,
Thanks for your response. my Data model already has daily average calculated and its populated from the source . I am able to get the avg for the 4 weeks. Its straight forward in my scenario. SUM(DailyAvg)/28
All i need to do is display this value based on the inventory max availability date. If the inventory max date is 9/2 i need to display the value for that date
- amitchandak6 years ago
Super User
gardas_swathi , not very clear. But you can get data for the last available date. But will not work when day is axis or group, then you need use allexcept
lastnonblankvalue(Table[Date],sum([Value]))
calculate( lastnonblankvalue(Table[Date],sum([Value])),allexcept (Table[Week]))