cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ivyhai Member
Member

Dax for cancellation rates (daily, weekly, monthly)

Need help! I need to compare the cancellation rates for each day/week/month.  see my sample data below

  1. Cumulative Active = previous cumulative active + new signup - cancel
  2. Cancellation rate (day) = cancel (day) / cumulative active 
  3. Cancellation rate (week) = cumulative cancel (as that week) / cumulative active 

Please find sample data below

https://we.tl/t-dBlnomWHUw

 

Left 3 columns are data we've got, right columns are datas we want to get from DAX. 

 

thanks!!!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Dax for cancellation rates (daily, weekly, monthly)

hi, @ivyhai

After my research, you could try this way:

Step1:

Add a date table

Step2:

Use this formula to add a new table

Table = FILTER(CROSSJOIN(Table1,'Date'),'Date'[Date]>=Table1[New Active Date]&&'Date'[Date]<IF(Table1[Cancel Date]=BLANK(),MAX('Date'[Date]),Table1[Cancel Date]))

Step3:

Use your logic to create these measure

Result:

1.JPG

 

See more details, please try my pbix file.

 

Best Regards,

Lin

 

 

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Dax for cancellation rates (daily, weekly, monthly)

hi, @ivyhai

After my research, you could try this way:

Step1:

Add a date table

Step2:

Use this formula to add a new table

Table = FILTER(CROSSJOIN(Table1,'Date'),'Date'[Date]>=Table1[New Active Date]&&'Date'[Date]<IF(Table1[Cancel Date]=BLANK(),MAX('Date'[Date]),Table1[Cancel Date]))

Step3:

Use your logic to create these measure

Result:

1.JPG

 

See more details, please try my pbix file.

 

Best Regards,

Lin

 

 

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 343 members 3,432 guests
Please welcome our newest community members: