Hi,
I am trying to get Today figures vs previous day figures.
For the previous day, i have created a measure as follows
Prev Day = Calculate([Today Figures], DateAdd(DateTable(date),-1,day))
However the issue is, the preceding day needn’t always have figures in it [owing to various reasons such as weekend, public holiday, no transaction etc]. In which case, how do i pick the last available non blank values before the current date?
For example;
today is 2nd Feb 2020 and the previous figures available are for 29th Jan 2020.
The prev day formula should pick up figures as on 29th Jan 2020.
Hi @Melissa, this was a great solution to a problem I had and it solved it perfectly.
My situation is a little different though and on some days the ‘price’ I have captured for a particular commodity on aparticular day could be exactly the same as the previous date. What i’d love to be able to do is say if the previous day’s price is the same as the current max date price, then skip and move to the next previous days price.
Do you think this would be possible?
Regards,
Bronwyn
Sure, first you probably need to calculate a [Last Day Sales] (or current max date price) but when you’ve done that you can add it to the FILTER condition.
Thanks @Melissa, i’m not sure this satisfy’s my strange requirement. Your solution works where there is a blank cell, but not where the latest price and last price are the same.
@EnterpriseDNA,
This is a new question, could you please split this thread at post number 7.
Subject: Compare last two previous price changes
Thank you!