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
Hi All,
as per below attachment i need only those line items "Sum value (testing2)" where "dc" filed have "H&S"(both) except this if we have only "H" then its value shoud be "0"...
please help me to resolve this issue.
Thanks in advance.
Solved! Go to Solution.
HI @Anonymous,
You can try to use the following measure formula if it was suitable for your requirement:
formula =
VAR currAssignment =
VALUES ( Table[Assignment] )
VAR summary =
SUMMARIZE (
FILTER (
ALLSELECTED ( Table ),
[DC]
IN { "H", "S" }
&& [Assignment] IN currAssignment
),
[Assignment],
"c_DC", COUNT ( Table[DC] ),
"s_Test2", SUM ( Table[Test2] )
)
RETURN
SUMX ( FILTER ( summary, [c_DC] = 2 ), [s_Test2] )
Regards,
Xiaoxin Sheng
HI @Anonymous,
You can try to use the following measure formula if it was suitable for your requirement:
formula =
VAR currAssignment =
VALUES ( Table[Assignment] )
VAR summary =
SUMMARIZE (
FILTER (
ALLSELECTED ( Table ),
[DC]
IN { "H", "S" }
&& [Assignment] IN currAssignment
),
[Assignment],
"c_DC", COUNT ( Table[DC] ),
"s_Test2", SUM ( Table[Test2] )
)
RETURN
SUMX ( FILTER ( summary, [c_DC] = 2 ), [s_Test2] )
Regards,
Xiaoxin Sheng
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 |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |