Forum Discussion
Last year Values on Daily Bases
I want to know the daily sales figures for the same day last year, and I'm presenting this data in a daily graph.
At the moment, I'm using this function, but the values are coming out incorrectly.
Rooms Sold LY Result = CALCULATE(SUM(OTA_INSIGHT_DATA[ROOMS_SOLD]),DATEADD('Date'[Date],-1,YEAR))
please help me out where i am wroogn
3 Replies
- sergej_og
Super User
Your formula looks good to me.
so, what is your issue? 🙂
- AnonymousNot applicable
It's not working in the graph.
- AnonymousNot applicable
Hi Anonymous ,
According to your description, it seems that you are trying to get the value for the last year. And the returned reuslt not correct. In order to make troubleshooting and give you a solution, could you please provide some raw data in your table 'OTA_INSIGHT_DATA' (exclude sensitive data) with Text format , the relationship info between the table 'OTA_INSIGHT_DATA' and the 'Date' table and . It would be helpful to find out the solution? You can refer the following link to share the required info:
How to provide sample data in the Power BI Forum
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards