- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

How to count across rows in a matrix visual
Hi Team
I am compiling a fairly decent set of data where I have data across 11 columns that contain true/false. It's an attendance list and I only care about those who attended. I've created a measure for each week to count the number of trues. I have then put this in a filter by unit and class. This is all great but I would love to get a total on the right side that shows the total the number of attendances each unit. EG for ANAT1001 I would like to see 153.
I've looked for solutions but most of them require going back to the actual data table but as my measures are in there I don't know how to create a column that counts the measures.
Any help greatly appricated
Chloe
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Can you unpivot the source table so that each week isn't a separate column but rather a single column with the value indicating the week that it belongs to? This would normalize your dataset and make this kind of modeling easier to work with.
For example take this
and turn it into this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi John,
Thanks so much for that, unpivoting those columns in my dataflow enabled me to get a matrix table that had both row and column totals.
An additional benefit was that instead of having to have 12 separate measures to count each column I only needed one to count the values column.
Thanks again!
Chloe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Can you unpivot the source table so that each week isn't a separate column but rather a single column with the value indicating the week that it belongs to? This would normalize your dataset and make this kind of modeling easier to work with.
For example take this
and turn it into this

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
10-17-2024 04:59 AM | |||
10-07-2024 10:50 AM | |||
08-09-2024 08:08 AM | |||
09-13-2024 11:29 AM | |||
08-19-2024 12:15 PM |
User | Count |
---|---|
141 | |
115 | |
82 | |
63 | |
48 |