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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Cobra77
Post Patron
Post Patron

How calculate Client returning by month ?

Hi ,

How calculate Client returning by month ?

Sample : ( left table, all data )

exemple_MM.jpg

 

I want calculate number of users active in the month that were also active in the preceding month
In july ,I must have just 1  , only toto@test.com ordered in june
the goal is to create the middle graph

 

How do the join on the email on the previous month ?

 

thanks for your helps

5 REPLIES 5
Anonymous
Not applicable

Hi @Cobra77 ,

 

How do you make the right table, I think if you have that table you can do the chart using the value of last month > 0.

If you don't have table, I think if you can change your query, you can try to left join the table using the month = month - 1 and name = name to get the last month value.

 

Please try.

Aiolos Zhao

Hi  @Anonymous 
the right table : with measures
Nb Montant = SUM(Table1[Montant])
Nb Previous Month = CALCULATE([Nb Montant];PREVIOUSMONTH('Calendar'[Date]))
MM = IF ([Nb Previous Month] >0 ;DISTINCTCOUNTNOBLANK( Table1[Email]); BLANK() )
 
Its MM that I searched optimize and good result in the graphic middle
 
thanks

Anonymous
Not applicable

Hi @Cobra77 ,

 

I think your way is a good method to finish the middle chart,

for now I can't find a better way to solve that...

 

Aiolos Zhao

Hi @Anonymous 

 

How can you do a join on the same table ?

on email = email and MONTH = previousMONTH ?

 

Thanks

Anonymous
Not applicable

Hi @Cobra77 ,

 

Yes, that's what I thought.

 

Aiolos Zhao

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.