Forum Discussion

Sri57's avatar
Sri57
Frequent Visitor
2 years ago
Solved

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...
  • ValtteriN's avatar
    2 years ago

    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/

  • Anonymous's avatar
    Anonymous
    2 years ago

    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.

     

    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.