Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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], ", " )
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
78 | |
78 | |
58 | |
35 | |
31 |
User | Count |
---|---|
99 | |
59 | |
56 | |
46 | |
40 |