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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Sri57
Frequent Visitor

True/False expression does not specify a column

Im getting the error like "The True/False expression does not specify a column. Each True/False expressions used as a table filter expression must refer to exactly one column." when trying to write a dax expression
Var A = SUMMARIZE(Test','Test'[Delivery],"val",
CALCULATE(MIN([LT (CRAD to Delivery Date)]),ALLEXCEPT('Test','Test'[Delivery]),'Test'[Item Category]<>"TAPA",'Test','Test'[BOL]=1))
RETURN MINX(A,[val])

Here [BOL] is a measure and remaining are columns in Test table.
TIA

2 ACCEPTED SOLUTIONS
ValtteriN
Super User
Super User

Hi,

As the error states when using a table filter expression you need to refer to columns. Since [Bol] is a measure this error happens. Try adding the logic in Bol to a column e.g. with ADDCOLUMNS in the measure. 

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Anonymous
Not applicable

Hi @Sri57 ,

 

According to your description, here are my steps you can follow as a solution.

(1) We can create a measure.

Measure 2 =
VAR A =
    SUMMARIZE (
        'Test',
        'Test'[Delivery],
        "val",
            CALCULATE (
                MIN ( 'LT'[CRAD to Delivery Date] ),
                FILTER (
                    ALLEXCEPT ( 'Test', 'Test'[Delivery] ),
                    'Test'[Item Category] <> "TAPA"
                        && [BOL] = 1
                )
            )
    )
RETURN
    MINX ( A, [val] )

(2) Then the result is as follows.

vtangjiemsft_0-1709111313142.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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

2 REPLIES 2
Anonymous
Not applicable

Hi @Sri57 ,

 

According to your description, here are my steps you can follow as a solution.

(1) We can create a measure.

Measure 2 =
VAR A =
    SUMMARIZE (
        'Test',
        'Test'[Delivery],
        "val",
            CALCULATE (
                MIN ( 'LT'[CRAD to Delivery Date] ),
                FILTER (
                    ALLEXCEPT ( 'Test', 'Test'[Delivery] ),
                    'Test'[Item Category] <> "TAPA"
                        && [BOL] = 1
                )
            )
    )
RETURN
    MINX ( A, [val] )

(2) Then the result is as follows.

vtangjiemsft_0-1709111313142.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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

ValtteriN
Super User
Super User

Hi,

As the error states when using a table filter expression you need to refer to columns. Since [Bol] is a measure this error happens. Try adding the logic in Bol to a column e.g. with ADDCOLUMNS in the measure. 

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.