Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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.
| Cohort | Count of People ID |
| 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 |
| Total | 266 |
| 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
Solved! Go to Solution.
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
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 | ||||
| Cohort | People ID | Cohort | People ID | |||
| Cohort 1 | 100 | Cohort 1 | 8 | Cohort 1- 8 | ||
| Cohort 1 | 101 | Cohort 2 | 10 | Cohort 2- 10 | ||
| Cohort 1 | 102 | Cohort 3 | 4 | Cohort 3- 4 | ||
| Cohort 1 | 103 | Cohort 4 | 2 | Cohort 4- 2 | ||
| Cohort 1 | 104 | |||||
| Cohort 1 | 105 | |||||
| Cohort 1 | 106 | |||||
| Cohort 1 | 107 | |||||
| Cohort 2 | 108 | |||||
| Cohort 2 | 109 | |||||
| Cohort 2 | 110 | |||||
| Cohort 2 | 111 | |||||
| Cohort 2 | 112 | |||||
| Cohort 2 | 113 | |||||
| Cohort 2 | 114 | |||||
| Cohort 2 | 115 | |||||
| Cohort 2 | 116 | |||||
| Cohort 2 | 117 | |||||
| Cohort 2 | 118 | |||||
| Cohort 3 | 119 | |||||
| Cohort 3 | 120 | |||||
| Cohort 3 | 121 | |||||
| Cohort 3 | 122 | |||||
| Cohort 4 | 123 | |||||
| Cohort 4 | 124 | |||||
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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 67 | |
| 63 | |
| 30 | |
| 30 | |
| 23 |