Forum Discussion
Anonymous
6 years agoNot applicable
Migrating a SQL query to Power Bi (retention rates)
Hello everyone. I started to migrate some Excel reports to Power BI and one of those was the Retention Rate. It was written in SQL and basically I have one table with all the information I want. The...
Anonymous
6 years agoNot applicable
Thank you, both of you. The pbix file can be downloaded here.
Basically this sample file only has the date when the order was placed and the user email (which was hashed). Also there's a column called frauduent, which should be filter as 0, pretty simple.
Once again, thank you for your help guys!
lbendlin
Super User
6 years agoDon't use a date hierarchy on the orderdatetime field. Instead, create a calculated column that only has the date value of orderdatetime, and then add a proper calendar table that holds the required granularity (day, month etc)
OrderDate = DATEVALUE(test[orderdatetime])
Calendar = CALENDARAUTO()
Month = MONTH('Calendar'[Date])