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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
WJ876400
Helper IV
Helper IV

Count

Hi

 

I have the below as a matrix table and i want to be able to combine the cohort and the total of people on the cohort so it looks like the bottom table and all the data is on one field that can be pulled onto a different table. Currently i have the total by cohort being calculated in a matrix table but need to do this as a seperate measure or column.

 

CohortCount of People ID
Cohort 128
Cohort 215
Cohort 326
Cohort 474
Cohort 565
Cohort 623
Cohort 75
Cohort 810
Cohort 99
Cohort 1011
Total266

 

Cohort 1-  28
Cohort 2-  15
Cohort 3-  26
Cohort 4-  74
Cohort 5-  65
Cohort 6-  23
Cohort 7-  5
Cohort 8-  10
Cohort 9-  9
Cohort 10-  11

 

thanks for any help

1 ACCEPTED SOLUTION

Check : https://www.dropbox.com/s/5ub0i8ougw1geec/cohort.pbix?dl=0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

Not sure I got it completely

GT = calculate(sum(Table[Count of People ID]),all(Table))

 

New column= Table[Cohort] &" " & Table[Count of People ID])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak 

 

yes that is what I want to do however i need to do the count of the people ID.

 

So i have a table with people in that have an individual ID and then have a cohort 1- 10 next to them. So far I can put the cohort on the row of a matrix table and the peoplesID in the values which gives me how many people are on each cohort. I want to do a calculation to total up how many are on each cohort. If that makes sense

 

thanks

Can you share sample data and sample output.  Mark me @ while sharing.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak 

 

This is the raw data I have in table, then I want to summarise in a tbale to show numbers on each cohort and then combine them into one field

 

Table  Summarised  Outcome
CohortPeople ID Cohort People ID  
Cohort 1100 Cohort 18 Cohort 1- 8
Cohort 1101 Cohort 210 Cohort 2- 10
Cohort 1102 Cohort 34 Cohort 3- 4
Cohort 1103 Cohort 42 Cohort 4- 2
Cohort 1104     
Cohort 1105     
Cohort 1106     
Cohort 1107     
Cohort 2108     
Cohort 2109     
Cohort 2110     
Cohort 2111     
Cohort 2112     
Cohort 2113     
Cohort 2114     
Cohort 2115     
Cohort 2116     
Cohort 2117     
Cohort 2118     
Cohort 3119     
Cohort 3120     
Cohort 3121     
Cohort 3122     
Cohort 4123     
Cohort 4124     
       
Anonymous
Not applicable

Hi @WJ876400m,

You can use following calculate table formula to create a summary and combined table:

New Table =
SELECTCOLUMNS (
    SUMMARIZE ( 'Table', [Cohort], "C", COUNT ( 'Table'[Cohort] ) ),
    "Output", [Cohort] & "-" & [C]
)

Regards,

Xiaoxin Sheng

Check : https://www.dropbox.com/s/5ub0i8ougw1geec/cohort.pbix?dl=0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors