Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Greetings,
Then comes the really tricky part. The Tests can all be ran individually. However, sometimes Test 1, Test 2, and Test 3 need to be tied together for a sample and need to be counted as 1 Test. I've tried grouping "Tests" in PowerBI to achieve that, but that doesn't seem to help.
Any ideas anyone? Thanks in advance.
Please see the example below.
| Sample | Test | |
| A | TEST 1 | Sample A=2 test names |
| A | TEST 1 | |
| A | TEST 1 | |
| A | TEST 2 | |
| A | TEST 2 | |
| B | Test 1 | Sample B=3 test names |
| B | Test 2 | |
| B | Test 3 | |
| C | TEST 1 | Sample C=2 test names |
| C | TEST 2 | (1,2,3 as 1) |
| C | TEST 3 | |
| C | Test 1 | |
| C | Test 1 | |
| C | Test 1 | |
| C | Test 1 | |
|
Hi, @mcgeeks
According to your description, if the Test columns are different and the Sample columns have the same data, then the corresponding rows are output, there are a few questions:
1.Sample C=2 test names how do you get this data, (1,2,3 as 1) means if TEST 1, TEST 2, TEST 3 all appear then it is only seen as TEST 1?
2. you eventually want to realize the effect in the matrix, you can share the effect you want to realize as a snapshot.
Best Regards,
Yang
Community Support Team
Hi Yang, thanks for responding.
Our tests are such that sometimes you need test 1. And at other times you need a separate test 2 or test 3. But for some you need a combination of tests, in my example that was a combo of test 1, test 2, and test 3, and they want it counted as one test.
Let me give you an actual detailed example. I'm posting a picture of the actual data as it comes from a huge database, it's hard to extract just that. In this example the "sample" is a string of numbers on the left. Then the next column is a distinct count of the sample and totals correctly. Then the Count of Test Groups is a distinct count of test names (a text column) that gives the correct total of tests per sample (meaning per row) but does not add them up correctly for the total at the bottom.
The TestCount column is one where I was trying to achieve that total with a combination of two measures. Which is not achieving what I'm after. It instead is just mimicking what I'm seeing in the Count of Test Groups column. Here are those two measures:
I only need 2 columns with correct totals. Count of samples which is already correct, and a test count with whichever column name. I'm just having problems getting the total correct on that column with a distinct count of text test names per sample.
Here is a snapshot of the list without a sample expanded.
The count of sample is totaled correctly. Either the Count of test groups column or the TestCount column TOTAL needs to read 90.
| 1 | 1 | |
| 1 | 1 | |
| 1 | 1 | |
| 1 | 1 | |
| 1 | 2 | |
| 1 | 1 | |
| 1 | 1 | |
| 1 | 1 | |
| 1 | 1 | |
| 1 | 2 | |
| 1 | 2 | |
| 1 | 1 | |
| 1 | 3 | |
| 1 | 8 | |
| 1 | 7 | |
| 1 | 7 | |
| 1 | 7 | |
| 1 | 7 | |
| 1 | 7 | |
| 1 | 7 | |
| 1 | 7 | |
| 1 | 7 | |
| 1 | 8 | |
| Total | 23 | 90 |
I know this was lengthy, but hopefully I've given enough information to explain the issue. Thank you for your assistance on the matter.
Regards,
mcgeeks
So I made progress.
If I can now get a sum of the count of test groups in that matrix I'll be good.
Follow up: I have the data in a matrix table. A distinct count of sample works. A non-distinct value for Test gives me way too many in the count. We think due to the tests that should be grouped together in the count. I was hoping that grouping the Tests could help but it doesn't seem to change the count at all.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 13 | |
| 10 | |
| 10 |