Forum Discussion
PREVIOUSDAY function Duplicate Dates Error
- 6 years ago
Hi , pprasad2
I can reproduce your problem. For more details ,please check the sample file.
You are using time intelligence functions PREVIOUSDAY which is suggest to use with a separate date table/dimension.
There are duplicate values(Date Range) in your table ( same date in multiple rows ).
It is suggest to create a calendar table with unique and continuous dates that cover all periods of your fact table.
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
See if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008