Forum Discussion
Actuals vs Average + Chart Date Filtering
- 5 years ago
Hi Anonymous ,
Sorry for the late reply,try to use "dateadd" instead of "dateinperiod":
AVG.PRE-REV = CALCULATE( [MRR(no RFS)] , DATEADD( 'CALENDAR'[Date] , -3 , MONTH )&& MAX( PROJECT_LOOKUP[RFS.DATE] )<=DATE(2020,11,31))) /3Best Regards,
KellyDid I answer your question? Mark my post as a solution!
v-kelly-msft thanks for the response.
I still have the issue that the months are still visible outside of the range I want to see (i.e. all of 2019 and 2021).
Also, in my actual data model I have other tables linked to the 'CALENDAR' table and 'PROJECT_LOOKUP' tables so that I receive this error when I try to change that relationship to 'Both':
Hi Anonymous ,
Direction is important in relationships,you may try star schema instead.
See the reference below:
https://docs.microsoft.com/en-us/power-bi/guidance/star-schema
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!