Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
I have a table with the following columns
Case#, Utilities, UtilityStatus
Each Case# has 4 utilites, let's call them A,B, C and D. Each utilities has the following status depending on current situation: complete and pending.
I want to have a measure that returns Complete if all 4 utilities are 'Complete' and Partial otherwise for each Case#
For illustration purposes:
Case# Utilities UtilityStatus
1111 A Complete
1111 B Complete
1111 C Complete
1111 D Complete
2222 A Complete
2222 B Complete
2222 C Pending
2222 D Complete
I want the measure to return Complete for 1111 & Partial for 2222
Solved! Go to Solution.
@Anonymous , Try like
Measure =
var _table = summarize(Table, Table[Case#], "_1", Count(Table[Utilities]) , "_2", countx(filter(Table, Table[UtilityStatus] ="Complete"),Table[Utilities]))
return
maxx(_table, if([_1] =[_2], "Complete", "Partial"))
or
Measure =
var _table = summarize(Table, Table[Case#], "_1", Count(Table[Utilities]) , "_2", countx(filter(Table, Table[UtilityStatus] ="Complete"),Table[Utilities]))
return
calculate( maxx(_table, if([_1] =[_2], "Complete", "Partial")), allexcept(Table, Table[Case#]))
@Anonymous , Try like
Measure =
var _table = summarize(Table, Table[Case#], "_1", Count(Table[Utilities]) , "_2", countx(filter(Table, Table[UtilityStatus] ="Complete"),Table[Utilities]))
return
maxx(_table, if([_1] =[_2], "Complete", "Partial"))
or
Measure =
var _table = summarize(Table, Table[Case#], "_1", Count(Table[Utilities]) , "_2", countx(filter(Table, Table[UtilityStatus] ="Complete"),Table[Utilities]))
return
calculate( maxx(_table, if([_1] =[_2], "Complete", "Partial")), allexcept(Table, Table[Case#]))
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |