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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.