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
Dear Friends,
i am trying to achieve the results by grouping the decision of Episode ID using some business logic, can anyone help me on this?
Please refer below image for data set and expectation with Logics. KIndly ask me for more questions.
Thanks,
Yuvi
Solved! Go to Solution.
I attempted using Power Query.
if Table.MatchesAllRows([Grouped], each [Decision] = "Approved") then "Approved" else if Table.MatchesAllRows([Grouped], each [Decision] = "Denied") then "Denied" else if Table.MatchesAllRows([Grouped], each [Decision] = "Partially denied") then "Partially denied" else if Table.MatchesAnyRows([Grouped], each [Decision] = "Pending") then "Pending" else "Partially denied"
Proud to be a Super User!
Sorry. Try COUNTROWS ( DecisionList ) = 1 instead.
Thanks much for the solution. It works as expected. Thanks a ton again 🙂
I attempted using Power Query.
if Table.MatchesAllRows([Grouped], each [Decision] = "Approved") then "Approved" else if Table.MatchesAllRows([Grouped], each [Decision] = "Denied") then "Denied" else if Table.MatchesAllRows([Grouped], each [Decision] = "Partially denied") then "Partially denied" else if Table.MatchesAnyRows([Grouped], each [Decision] = "Pending") then "Pending" else "Partially denied"
Proud to be a Super User!
Thanks Chris for the quick solutioning and help. This is one of the cool technique i learned from you power query:) i appreciate your support and help on this. Have a good day!
How about this?
Overall Decision =
VAR DecisionList =
CALCULATETABLE (
VALUES ( Table1[Decision] ),
ALLEXCEPT ( Table1, Table1[Episode ID] )
)
RETURN
IF (
HASONEVALUE ( DecisionList ),
DecisionList,
IF ( "Pending" IN DecisionList, "Pending", "Partially denied" )
)
Thanks Alex for your solutioning. I tried the code and got the error as "The HASONEVALUE function expects a column reference expression for argument '1', but a table expression was used.", can you please help me on that ? Screen shot below for your reference.
Sorry. Try COUNTROWS ( DecisionList ) = 1 instead.
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 |
|---|---|
| 28 | |
| 23 | |
| 22 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 35 | |
| 28 | |
| 22 | |
| 22 |