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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
adoalan
Helper III
Helper III

Help with DAX formula

Hi 

 

I need help with formula

adoalan_1-1668688838666.png

 

I m getting 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-henryk-mstf
Community Support
Community Support

Hi @adoalan ,

 

I am unable to reproduce this question for the time being. Can you provide the relevant test data and describe it so that I can answer it for you as soon as possible?

(1) How to provide sample data in the Power BI Forum - Microsoft Power BI Community


Looking forward to your reply.


Best Regards,
Henry

 

adoalan
Helper III
Helper III

And the error is this

 

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

amitchandak
Super User
Super User

@adoalan , can you share error in text format to check

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak  see below

No Previous GAD =
VAR StartDate = CALCULATE(MIN('Gift Aid Declarations'[Created On]), ALLSELECTED('Gift Aid Declarations'))

VAR CurrGAD =
FILTER (
    DISTINCT  (
        SELECTCOLUMNS (
        'Gift Aid Declarations', "Supporter ID", 'Gift Aid Declarations'[Supporter ID])
        ),
    NOT (ISBLANK([Supporter ID]))
)  
VAR PrevGAD = CALCULATETABLE(
    VALUES('Gift Aid Declarations'[Supporter ID]),
    'Gift Aid Declarations'[First GAD Created On] < StartDate &&
    'Gift Aid Declarations'[Supporter ID]<> BLANK()
)

RETURN

IF(
    COUNTROWS(EXCEPT(CurrGAD, PrevGAD)) = BLANK(),
    0,
    COUNTROWS(EXCEPT(CurrGAD, PrevGAD))
)

Helpful resources

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

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.