Forum Discussion
Calculating date opened and date closed in same report
- 6 years ago
Hi Shpongle ,
Based on my test, it is indeed related to the data type. The data type of the date in calendar table and fact table should be the same from the beginning.
For example, when your calendar table is date type, your fact table is date/time type but you have changed them to date already, it will show the result just like your latest reply.
If your fact table and calendar table are date types or date/time types initially, it will work fine.
My test sample file is attached that you can refer, hopes to help you understand it: Calculating date opened and date closed in same report.pbix
Best Regards,
Yingjie LiIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Potentially. Rather than changing it I would add another column in Power Query with just the date value.
Your measure formula works fine for me. However you need to enable "Show items with no data" for scenarios where on a particular day no tickets were opened. If you don't do that then the closed tickets won't show up either.
OK - now I can see that the ticket counts are not being associated with any date!
A little bit of progress, but now what do I do?? 🤔
- lbendlin6 years ago
Super User
check the table relationships again, make sure the right fields are selected. It works for me.
- Ashish_Mathur6 years ago
Super User
Hi,
Share the link from where i can download your PBI file.