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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
NatiArtlist
New Member

Help with cohort % also in totals

Hi guys

trying to build cohort analysis, here based on USD

I created a measure of % from first perios (1), works well except of totals, it takes the entire first column instate of if data is availabe. the correct calculation need toexclude when data is not availavle in next period as follow:

NatiArtlist_0-1625061380275.png

The measue i wrote for the % calculation is:

Retain % = divide(sum('Cohort Table-Annual'[CumulativeCollection]),CALCULATE(sum('Cohort Table-Annual'[CumulativeCollection]),ALLSELECTED('Cohort Table-Annual'[Cohort Month]) , 'Cohort Table-Annual'[Cohort Month] =1))
 
 
Thanks 

 

1 REPLY 1
Anonymous
Not applicable

Hi @NatiArtlist ,

Whether your problem has been resolved? If yes, please mark your post as Answered? It will help the others find the solution easily if they face the same problem with you. Otherwise, you can create another measure to replace the measure [Retain %] and put it on the matrix:

 

Measure = SUMX ( GROUPBY ( 'Table'[Year], 'Table'[Month] ), [Retain %] )

 

If the above one can't help you get the correct result, you can refer the method in the following links to resolve it.

Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand

Dax for Power BI: Fixing Incorrect Measure Totals

Best Regards

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors