This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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 May 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 |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |