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.
Assistance with syntax to include multiple values from same column
VAR DC_Data =
COUNTROWS ( FILTER ( FILTER ( FILTER ( FILTER (
'Power Pull',
'Power Pull'[DC] = "AZ" ),
NOT CONTAINSSTRING('Power Pull'[Outbound] , "Note*")),
-- ------- Need to include all of the below any of the below values would need to be pulled if found
-- -----------Since it's all the same column is there a inlist contains statment that can be used ?
'Power Pull'[EQType] = "Smart PDU" ||
'Power Pull'[EQType] = "PDU" ||
'Power Pull'[EQType] = "MainFrame" ||
'Power Pull'[EQType] = "Sensor" ||
'Power Pull'[EQType] = "Storage" ||
'Power Pull'[EQType] = "Storage Frame" )),
'Power Pull'[DisplayLabel] = "Live" ))
-- ----------------------------
RETURN
SWITCH (
TRUE (),
MAX ( 'Metrics- Site'[Expected] ) = "DC", DC_Data +0
)
Solved! Go to Solution.
Hi @EZimmet - Instead, it's best to use a single FILTER with IN for multiple values, which makes it cleaner and more efficient.
VAR DC_Data =
COUNTROWS (
FILTER (
'Power Pull',
'Power Pull'[DC] = "AZ" &&
NOT CONTAINSSTRING ( 'Power Pull'[Outbound], "Note*" ) &&
'Power Pull'[EQType] IN { "Smart PDU", "PDU", "MainFrame", "Sensor", "Storage", "Storage Frame" } &&
'Power Pull'[DisplayLabel] = "Live"
)
)
RETURN
SWITCH (
TRUE(),
MAX ( 'Metrics- Site'[Expected] ) = "DC", DC_Data + 0
)
hope this works. please check
Proud to be a Super User! | |
Fantastic Thank you that did the trick
Hi @EZimmet - Instead, it's best to use a single FILTER with IN for multiple values, which makes it cleaner and more efficient.
VAR DC_Data =
COUNTROWS (
FILTER (
'Power Pull',
'Power Pull'[DC] = "AZ" &&
NOT CONTAINSSTRING ( 'Power Pull'[Outbound], "Note*" ) &&
'Power Pull'[EQType] IN { "Smart PDU", "PDU", "MainFrame", "Sensor", "Storage", "Storage Frame" } &&
'Power Pull'[DisplayLabel] = "Live"
)
)
RETURN
SWITCH (
TRUE(),
MAX ( 'Metrics- Site'[Expected] ) = "DC", DC_Data + 0
)
hope this works. please check
Proud to be a Super User! | |
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 |
|---|---|
| 32 | |
| 26 | |
| 25 | |
| 24 | |
| 15 |
| User | Count |
|---|---|
| 61 | |
| 48 | |
| 26 | |
| 21 | |
| 20 |