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...
lbendlin
5 years agoSuper User
Don'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])
Anonymous
5 years agoNot applicable
Hello lbendlin.
I fixed my sample file. Actually our original file has the data table like you said and I had forgotten to create the same table on this one. The link file is the same and can be downloaded here.
Really hope you guys can help me on how to build the retention rate!