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
Need assistance with the measure to get the result as per below
If the Group column matches the Name column and the Category of Name & Group is the same then return True else return false
Table 1
| Number | Name | Group | Category | Isparent |
| Apple001 | Apple | Fruit | Yes | |
| 132112 | Apple Italy | Apple | Fruit | No |
| 122131 | Apple France | Apple | Fruits | No |
Result
| Number | Name | Group | Category | Result |
| Apple001 | Apple | Fruit | ||
| 132112 | Apple Italy | Apple | Fruit | TRUE |
| 122131 | Apple France | Apple | Fruits | FALSE |
Solved! Go to Solution.
@gauravnarchal If I understand, correctly, try the following PBIX is attached below signature.
Measure =
VAR __Name = MAX('Table'[Name])
VAR __Group = MAX('Table'[Group])
VAR __Category = MAX('Table'[Category])
VAR __Table = FILTER(ALL('Table'), [Isparent] = "Yes" && [Name] = __Group)
VAR __ParentCategory = MAXX(__Table, [Category])
VAR __ParentGroup = MAXX('Table', [Group])
VAR __Result =
SWITCH( TRUE(),
__Group = BLANK(), BLANK(),
__Group = __ParentGroup && __Category = __ParentCategory, TRUE(),
FALSE()
)
RETURN
__Result
@gauravnarchal If I understand, correctly, try the following PBIX is attached below signature.
Measure =
VAR __Name = MAX('Table'[Name])
VAR __Group = MAX('Table'[Group])
VAR __Category = MAX('Table'[Category])
VAR __Table = FILTER(ALL('Table'), [Isparent] = "Yes" && [Name] = __Group)
VAR __ParentCategory = MAXX(__Table, [Category])
VAR __ParentGroup = MAXX('Table', [Group])
VAR __Result =
SWITCH( TRUE(),
__Group = BLANK(), BLANK(),
__Group = __ParentGroup && __Category = __ParentCategory, TRUE(),
FALSE()
)
RETURN
__Result
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 |
|---|---|
| 35 | |
| 32 | |
| 26 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 68 | |
| 37 | |
| 32 | |
| 25 | |
| 23 |