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
Ustinovdl
Helper I
Helper I

Calculate clients by cohorts on client's turnover

How can I divide clients on different cohorts by its turnover?

 

I want create some cohorts like

0-100

100-200

200-500

500+

and then count clients on each of them like

 

0-100 - 100 clients

100-200 - 350 clients

200-500 - 20 clients

500+ - 10 clients

 

if I choose any filter like Source (out site, biller site etc) I want to recalculate previous table like

Our site:

0-100 - 70 clients

100-200 - 300 clients

200-500 - 12 clients

500+ - 10 clients

 

Biller site:

0-100 - 30 clients

100-200 - 50 clients

200-500 - 8 clients

500+ - 0 clients

 

Can I do it in Power BI Desctop?

 

4 REPLIES 4
Ustinovdl
Helper I
Helper I

My thoughts:

Measure

Turnover by client = CALCULATE(SUM(Clients[TURNOVER.]);FILTER(Clients;VALUES(Clients[USER_ID])))

 

 

Column

Turnover cohort = SWITCH(TRUE();
Clients[Turnover by client]<100;"0-100";
AND(Clients[Turnover by client]>= 100;Clients[Turnover by client]<200);
"100-200";Clients[Turnover by client]>=200;"200+")

 

Hi @Ustinovdl

 

Also you can use the technique of PARAMETER tables to get the ranges/cohorts.

May be this post is similar to your requirment

 

 

http://community.powerbi.com/t5/Desktop/Company-Durations/m-p/365291/highlight/true#M165168


Regards
Zubair

Please try my custom visuals

The difficulty is that I don't know How can I calculate amount of every user even if field USER_ID doesn't selected.

HI @Ustinovdl,

 

I'd like to have some sample data to test.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.