Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
xale19
Frequent Visitor

Measure for Cancellation Rates

Hi,

 

we are creating a report about the contracts in PowerBI. We are measuring new, cancelled and active contracts. The measures are connected with datetables.

New and cancelled contracts are working with a datetable and the active contracts are working with an exrtra datetable. We had to do this step to 2 datetables because with only one timetablle the measures influenced each other and we got wrong values. But if there’s another possible solution with only one datetable, we would appreciate it to change the report.

Our formulas are:

 

active contracts = CALCULATE(COUNT(contracts[Customer]);FILTER(dw_contracts;contracts[Start Date]<LASTDATE(Quarter[End of Month])&&contracts[End Date]>FIRSTDATE(Quarter[End of Month])&&contracts[totalprice in Euro]>0))

 

Cancellation = CALCULATE(COUNT(contracts[Customer]);FILTER(contracts;dw_contracts[Annual Contract Value]>0);Filter(contracts;dw_contracts[End Date]<=LASTDATE(DateTable2[Date]));CALCULATETABLE(contracts;dw_contracts[End Date]);CALCULATETABLE(DateTable2;DateTable2[Date]))

 

new contracts = CALCULATE(COUNT(contracts[Account Number]);USERELATIONSHIP(contracts[Start Date];DateTable[Date]);FILTER(contracts;contracts[Annual Contract Value]>0&&contracts[Start Date]<=LASTDATE(DateTable[Date])))

 

So no we want to create the cancellation rate. The Cancellation Rate means that we measure the active contracts at a date and after a certain period we are measuring how many of these active contracts went cancelled.  In this case the 2 datetales are the issue for creating this measure. Do you have any idea how we can create a measure for this?

 

Thank you for your efforts.

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @xale19,

 

Since you said you don't want the measures to influce each other, the only way is to connect them with two separate datetables. Based on my test, unfortunately I didn't find a valid solution to achieve your requirement. 

 

Regards,

Yuliana Gu

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

 Hi v-yulgu-msft

 

thank you for your reply. Do you have any ideas for creating the Cancellation Rate measure?

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.