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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.