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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Retention Rate in Matrix

Hi,

 

I have a matrix viz that looks like this to check the retention month over month:

 12345
Jan120119118115110
Feb280280280260250
Mar1801501209050

Rows: First Giving Date

Columns: Index

Values: Count of AccountIDs

 

For example, we had 120 accounts who started the subscription in January. The 2nd month, 1 person canceled the subscription, so we have 119 accounts.

 

Now, I want to see this in percentage.

 12345
Jan100%99%98%96%92%
Feb100%100%100%93%89%
Mar100%83%67%50%28%

I tried this in DAX, but it is not giving me the correct result.

VAR accounts_per_index = COUNT(AccountID)

VAR all_accounts = CALCULATE(COUNT(AccountID), FILTER(AccountTable, AccountTable[Index]=1))

 

Can someone help me with getting the correct result?

Thank you so much!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi Neel,

 

Thanks for your response. In my case, I might need to drill down based on account information, so I didn't create a summary table like you provided. I ended up using below formula and it worked.

 

All Records = CALCULATE(COUNT('Account & Giving'[AccountId]),'Account & Giving'[Index]=1)
Retention Rate = COUNT('Account & Giving'[AccountId])/'Account & Giving'[All Records]
 
 
 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hello @Anonymous ,

We can achieve the desired result with the use of the DAX Measure.

For the test purpose, I created a dummy table with your values aggregated in one column like this.

NeelPatel_0-1638950567344.png


Then I simply create one measure and plot it into the matrix with the month and index columns and the result I got is like and also plot another matrix with column values only for comparison:

NeelPatel_1-1638950810151.png
And the used measure is : 

NeelPatel_2-1638950874041.png


Thanks,
Neel

 



Anonymous
Not applicable

Hi Neel,

 

Thanks for your response. In my case, I might need to drill down based on account information, so I didn't create a summary table like you provided. I ended up using below formula and it worked.

 

All Records = CALCULATE(COUNT('Account & Giving'[AccountId]),'Account & Giving'[Index]=1)
Retention Rate = COUNT('Account & Giving'[AccountId])/'Account & Giving'[All Records]
 
 
 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.