cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

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: 292 members 3,314 guests
Please welcome our newest community members: