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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Sri57
Frequent Visitor

A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table filter exp

Hi,

I'm a newish user to PowerBI and struggling with a calculation.
I'm getting the error "A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table filter exp" when I try to create a measure like below:
% LTP BOD_Test =
IF (
CALCULATE (
DISTINCTCOUNT ( 'Delivery'[BOD] ),
'Delivery'[BOD_LTP or TP_Measure] = "LTP"
)
= BLANK (),
0,
DIVIDE (
CALCULATE (
DISTINCTCOUNT ( 'Delivery'[BOD] ),
'Delivery'[BOD_LTP or TP_Measure] = "LTP"
),
CALCULATE (
DISTINCTCOUNT ( 'Delivery'[BOD] ),
FILTER (
'Delivery',
'Delivery'[BOD_LTP or TP_Measure] <> BLANK ()
)
)
)
)

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Sri57 

 

This is due to the reference to Measure in the filter parameter of the CALCULATE function. The following documentation lists the cases in which this error occurs, so perhaps it can help you.

Solving errors in CALCULATE filter arguments - SQLBI

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Sri57 

 

This is due to the reference to Measure in the filter parameter of the CALCULATE function. The following documentation lists the cases in which this error occurs, so perhaps it can help you.

Solving errors in CALCULATE filter arguments - SQLBI

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Is 

[BOD_LTP or TP_Measure]

an actual measure?

yes @lbendlin 

Please provide more details. What's its definition?

@lbendlin BOD_LTP or TP_Measure =
var a = MAX('Delivery'[Pallet per BOD])
return
IF (
ISBLANK (a),
BLANK (),
IF (
a < 16,
"LTP",
"TP"
)
)
[Pallet per BOD] is again a calculated column

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.