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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
sbenzaquen
Helper I
Helper I

Identify Recurring client (a sale in each quarter)

Dear team,

 

I need your help on the following - I'm working on a sales data covering from Jan-20 to June-21, and I'd like to identify the clients that are a "Recurring client" which is defined as a client that has had at least one invoice/sale in each quarter for at least 4 out of the 6 quarters in the period.

 

For reference, I have a table with the sales data, a table with the list of clients and a calendar table. 

 

How can I do this?

 

I initially thought to create a column in the list of clients table, but not sure which formulas are appropriate.

 

Thanks,
Salvador

 

 

1 ACCEPTED SOLUTION
sbenzaquen
Helper I
Helper I

Thanks for the interest. I found the answer myself in the end. Here is the solution...

 

Recurring debtor =
IF(
IF(CALCULATE(COUNT('Summary TRF SCF'[Seller/Supplier Name]),Calendar1[QuarterInCalendar]="Q1 2020")>=1,1,0)+
IF(CALCULATE(COUNT('Summary TRF SCF'[Seller/Supplier Name]),Calendar1[QuarterInCalendar]="Q2 2020")>=1,1,0)+
IF(CALCULATE(COUNT('Summary TRF SCF'[Seller/Supplier Name]),Calendar1[QuarterInCalendar]="Q3 2020")>=1,1,0)+
IF(CALCULATE(COUNT('Summary TRF SCF'[Seller/Supplier Name]),Calendar1[QuarterInCalendar]="Q4 2020")>=1,1,0)+
IF(CALCULATE(COUNT('Summary TRF SCF'[Seller/Supplier Name]),Calendar1[QuarterInCalendar]="Q1 2021")>=1,1,0)+
IF(CALCULATE(COUNT('Summary TRF SCF'[Seller/Supplier Name]),Calendar1[QuarterInCalendar]="Q2 2021")>=1,1,0)
>=4,"Y","N")

View solution in original post

2 REPLIES 2
sbenzaquen
Helper I
Helper I

Thanks for the interest. I found the answer myself in the end. Here is the solution...

 

Recurring debtor =
IF(
IF(CALCULATE(COUNT('Summary TRF SCF'[Seller/Supplier Name]),Calendar1[QuarterInCalendar]="Q1 2020")>=1,1,0)+
IF(CALCULATE(COUNT('Summary TRF SCF'[Seller/Supplier Name]),Calendar1[QuarterInCalendar]="Q2 2020")>=1,1,0)+
IF(CALCULATE(COUNT('Summary TRF SCF'[Seller/Supplier Name]),Calendar1[QuarterInCalendar]="Q3 2020")>=1,1,0)+
IF(CALCULATE(COUNT('Summary TRF SCF'[Seller/Supplier Name]),Calendar1[QuarterInCalendar]="Q4 2020")>=1,1,0)+
IF(CALCULATE(COUNT('Summary TRF SCF'[Seller/Supplier Name]),Calendar1[QuarterInCalendar]="Q1 2021")>=1,1,0)+
IF(CALCULATE(COUNT('Summary TRF SCF'[Seller/Supplier Name]),Calendar1[QuarterInCalendar]="Q2 2021")>=1,1,0)
>=4,"Y","N")
vanessafvg
Super User
Super User

can you share some sample data?

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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