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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Anonymous
Not applicable

DAX Error: A function 'PLACEHOLDER" has been used

I'm attempting to create a measure to divide one card by another. 

Services Count / Services Goal = Percent to Goal

 

PTG Northstar =
DIVIDE(
CALCULATE(
COUNTROWS(CareerCenterGoals)
,CareerCenterGoals[Count of activityID -0 instead of blank]
)
,CALCULATE(
COUNTROWS('Goals: Career Center')
,'Goals: Career Center'[Services Goal]
)
)

 

I recieved this error: A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table filter expression. This is not allowed. 

4 REPLIES 4
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, the highlight part of your DAX code bellow hasnt express what outcome you want, it should be an expression but not a column.

 

vkalyjmsft_0-1636007162017.png

 

If you want to calculate the count of rows which is not blank, you can use the following measure.

 

vkalyjmsft_1-1636007162021.png

 

Heres some information which may help you to understand.

https://docs.microsoft.com/en-us/dax/calculate-function-dax

https://www.sqlgene.com/2019/04/16/dax-error-a-function-xxxx-has-been-used-in-a-true-false-expression-that-is-used-as-a-table-filter-expression-this-is-not-allowed/

 

Best Regards,
Community Support Team _ kalyj

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

Anonymous
Not applicable

I have measure 1 which counts number of cells and returns "0" instead of blank. 

I have measure 2 which is divisional goal. 

I'm attempting to create measure 3 to show me percent of goal. The two measures divided by each other. 

@v-yanjiang-msft 

Greg_Deckler
Community Champion
Community Champion

@Anonymous So generally that should look something like:

PTG Northstar =
DIVIDE(
CALCULATE(
COUNTROWS(CareerCenterGoals)
,CareerCenterGoals[Count of activityID -0 instead of blank] = <some value>
)
,CALCULATE(
COUNTROWS('Goals: Career Center')
,'Goals: Career Center'[Services Goal] = <some value>
)
)


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

@Greg what should = <some value> be? Does it matter?

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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