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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hey! I`m trying to create new measure:
pls try this
Frod_fo = CALCULATE(COUNTROWS('orders'),
FILTER(ALL('orders'), AND('orders'[order_number] = 1, [Frod_all] = TRUE())))
----- or ----Frod_fo = CALCULATE(COUNTROWS('orders'),
FILTER(ALL('orders'), 'orders'[order_number] = 1&& [Frod_all] = TRUE()))
Using a measure in another measure as a filter can be tricky. We need to build the list of order_number that match the criteria [@FrodAll] = TRUE() then use that list as a filter in your CALCUALTE:
Frod_fo =
VAR _List =
FILTER (
ADDCOLUMNS ( VALUES ( 'orders'[order_number] ), "@FrodAll", [Frod_all] ),
[@FrodAll] = TRUE ()
)
RETURN
CALCULATE ( COUNTROWS ( 'orders' ), 'orders'[order_number] = 1, _List )