Forum Discussion
espinozan
9 years agoHelper I
Creating a 12 month rolling trend report using Calendar
Hello all, I've been trying to research the best way to create a 12 month rolling trend report in Power BI. Somehow, I can't seem to find what I'm looking for. So far, I've notived most use calcu...
- Anonymous9 years agoAah, then try something like (untested code) :
=IF([Date]<Today()-365;False();IF([Date]>Today();False();True()))
Filter column by "True".
Anonymous
9 years agoNot applicable
Try this calculated table in your Date table (with small adjustments works with any month range and/or offset):
= IF ( [Date] < ( EOMONTH ( NOW (); -12 ) + 1 ); FALSE (); IF ( [Date] > EOMONTH ( NOW (); 0 ); FALSE (); TRUE () ) )
/RSK
- espinozan9 years agoHelper I
Hi Anonymous,
Thank you for your help! I trired the synatax but for some reason its not pulling 365 days worth of data, what can i do to fix this issue?
- Anonymous9 years agoNot applicableAah, then try something like (untested code) :
=IF([Date]<Today()-365;False();IF([Date]>Today();False();True()))
Filter column by "True".- espinozan9 years agoHelper I
Anonymous
It works, but I think my problem is the 'NOW()' since the most recent date in my data is 04/01/2017. What could I use in place of it but also have it update when I load new data?