Forum Discussion
Find Latest date
Hi Bhavya,
Since you have a Date table, it could be a simple measure like below. Please download the demo from the attachment.
Measure = CALCULATE ( MAX ( FACT_DETAILS_KPIS[Visit Date] ), FILTER ( ALL ( DIM_DATE ), DIM_DATE[Date] <= MAX ( DIM_DATE[Date] ) ) )
Best Regards,
Dale
Hi Dale,
Thank You so much. This is very helpful.
I also need to apply this in my KPI calculation. I need to find difference between distribution Sku every month vs July. If Distribution sku for a particular month doesn't exist( like Aug in the below example), then we need to consider the last distribution sku(in this case- July) and then find the difference.
Any help will be much appreciated.
Thank You,
Bhavya
- v-jiascu-msft7 years agoMicrosoft Employee
Hi Anonymous,
It seems the old question. Can you share a dummy sample that is similar to your real data? The main idea is to find the last date and then sum up the sku value where the date equals the last date.
Best Regards,