Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have the following calculated column:
Solved! Go to Solution.
Try this calculated column:
Green Class A =
VAR vTable =
CALCULATETABLE (
SUMMARIZE (
'product',
'product'[country_code],
'product'[ETIM Class],
'product'[identifier]
),
ALL ( 'product' ),
'product'[Green Class] = "A"
)
VAR vResult =
CALCULATE (
COUNTX ( vTable, 'product'[identifier] ),
ALLEXCEPT ( 'product', 'product'[country_code], 'product'[ETIM Class] )
)
RETURN
vResult
Proud to be a Super User!
Try this calculated column:
Green Class A =
VAR vTable =
CALCULATETABLE (
SUMMARIZE (
'product',
'product'[country_code],
'product'[ETIM Class],
'product'[identifier]
),
ALL ( 'product' ),
'product'[Green Class] = "A"
)
VAR vResult =
CALCULATE (
COUNTX ( vTable, 'product'[identifier] ),
ALLEXCEPT ( 'product', 'product'[country_code], 'product'[ETIM Class] )
)
RETURN
vResult
Proud to be a Super User!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!