Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

"PLACEHOLDER" function error

Hey! I`m trying to create new measure:

Frod_fo = CALCULATE(COUNTROWS('orders'), AND('orders'[order_number] = 1, 'orders'[Frod_all] = TRUE()))
 
where 'orders'[order_number] is a column 
orders'[Frod_all] is a measure
 
and I need count of frod first orders
but I get error: A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table filter expression. This is not allowed. 

what can I do?
2 REPLIES 2
Ahmedx
Super User
Super User

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()))

jdbuchanan71
Super User
Super User

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 )

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.