This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Please help me with this scenario at hand
I have a factless fact table imported into a Power BI Desktop model that contains the product modules with Testcase Groups and Testcases as shown in the example below:
| Module | TestCaseGroup | TestCaseID |
| A | G1 | 101 |
| A | G1 | 102 |
| A | G2 | 101 |
| A | G2 | 102 |
| A | G2 | 103 |
| A | G2 | 104 |
| A | G3 | 102 |
| A | G3 | 105 |
| B | G4 | 201 |
| B | G4 | 203 |
| B | G5 | 201 |
| B | G5 | 202 |
| B | G5 | 203 |
What I need to calculate and show in Power BI Desktop is two things:
Please kindly help.
Solved! Go to Solution.
HI @sujaisparks
Try these MEASURES
Test_Cases_Covered = DISTINCTCOUNT ( TableName[TestCaseID] )
Test_Cases_Not_Covered =
CALCULATE (
DISTINCTCOUNT ( TableName[TestCaseID] ),
ALL ( TableName[TestCaseGroup] )
)
- [Test_Cases_Covered]
To get the Names of IDs not covered, you can use this MEASURE
IDs not covered =
CONCATENATEX (
EXCEPT (
CALCULATETABLE (
VALUES ( TableName[TestCaseID] ),
ALL ( TableName[TestCaseGroup] )
),
VALUES ( TableName[TestCaseID] )
),
[TestCaseID],
", "
)
HI @sujaisparks
Try these MEASURES
Test_Cases_Covered = DISTINCTCOUNT ( TableName[TestCaseID] )
Test_Cases_Not_Covered =
CALCULATE (
DISTINCTCOUNT ( TableName[TestCaseID] ),
ALL ( TableName[TestCaseGroup] )
)
- [Test_Cases_Covered]
Tons of thanks to you sir for the help!!
What changes do I have to do the measure (Test_cases_not_covered) if need to put the TestcaseGroup Dimension attribute (TestcaseGroupDescription) as a slicer. This is a snapshot of the relationship with the factless fact table.
Here is the copy of the poc i'm working on My POC
Tons of thanks to you sir for the help!!
What changes do I have to do the measure (Test_cases_not_covered) if need to put the TestcaseGroup Dimension attribute (TestcaseGroupDescription) as a slicer. This is a snapshot of the relationship with the factless fact table.
Here is the copy of the poc i'm working on My POC
To get the Names of IDs not covered, you can use this MEASURE
IDs not covered =
CONCATENATEX (
EXCEPT (
CALCULATETABLE (
VALUES ( TableName[TestCaseID] ),
ALL ( TableName[TestCaseGroup] )
),
VALUES ( TableName[TestCaseID] )
),
[TestCaseID],
", "
)
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 24 | |
| 23 | |
| 17 | |
| 17 |
| User | Count |
|---|---|
| 61 | |
| 35 | |
| 30 | |
| 23 | |
| 22 |