Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi,
I keep pulling up text in my matrix for this dax measure Average Spend =
VAR CohortStartMonth = SELECTEDVALUE('AR Invoice'[Cohort])
VAR CurrentMonth = EOMONTH(CohortStartMonth, SELECTEDVALUE('(customer) Period Out'[Value]))
VAR TransactionsInCohortPeriod =
FILTER(
'AR Invoice',
RELATED('Rolling Calendar'[End of Month]) = CurrentMonth
)
VAR Invoices =
SUMMARIZE(
TransactionsInCohortPeriod,
'AR Invoice'[invoice_id],
"Invoice Total", SUM('AR Invoice'[invoice_amount])
)
RETURN
AVERAGEX(Invoices, [Invoice Total]) I am also using a
Hi,
What exactly are you trying to do? Share some data, explain the question in simple language and show the expected result. Share data in a format that can be pasted in an MS Excel file.
Hi @Brjt1 ,
Thanks amitchandak for the quick reply. Allow me to suggest other ideas:
Have you tried creating the measures separately to see if the output is correct? Such as:
_a =
DISTINCTCOUNT ( 'AR Invoice'[customer_id] )
_b=
CALCULATE (
DISTINCTCOUNT ( 'AR Invoice'[customer_id] ),
ALLSELECTED ( 'Customer Age Bucket' ),
'Customer Age Bucket'[Age] = 1
)
_c =
DIVIDE (_a,_b)
Retain % =
CALCULATE (_c,
'Customer Age Bucket'[Age] > 1
)
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Brjt1 , if you are looking for Cohort analysis refer
Power BI Cohort Analysis, Customer Retention %- https://youtu.be/qY1SDF1cwsg
The information you have provided is not making the problem clear to me. Can you please explain with an example.
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Hi Amitchandak,
I implemented your retention solution instead and it works great but I have a question. My results are showing 100% everywhere and I'm not sure where I went wrong. I am pulling from my ar invoice table the customer id's
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.