Forum Discussion
Cohort analysis
Hi! I have a problem. It is necessary to divide in the cohort analysis the values by month with repeated transactions on the total of transactions. Should get a table with percentage. The example in the screenshot.
I tried to use the formula:
Thank you for your time and attention.
Best regards.
2 Replies
- v-juanli-msftCommunity Support
Hi User
Show the columns added into the "column"/"row"/“value" field.
Are the columns added in the matrix from the same table?
From your screenshot, picture 1 and picture 2 show the different grand total.
It confuses me.
As for your formula:
FORMAT(CALCULATE(DISTINCTcount(source[ID]);filter(source;source[Rank]>1))/DISTINCTCOUNT(source[ID]);"Percent")
you could modify your formula as below, then change the data format to percent ( in the "modeling" bar.
CALCULATE(DISTINCTcount(source[ID]);filter(source;source[Rank]>1))/DISTINCTCOUNT(source[ID])
Check if it helps.
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- UserFrequent Visitor
I tried as you wrote, but the values are incorrect.The table contains the following fields (in the screenshot):