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
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
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])

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.

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     
       

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

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.