Forum Discussion

FT24TRGY5's avatar
FT24TRGY5
New Member
2 years ago

The True/False expression does not specify a column. Each True/False expressions used as a table fil

Hi, 
Why do I keep getting this error for the below measure:
 
KPI599 =
VAR ConditionCount =
    (
        IF(BBAS[SAFE] >= 0.05 && BBAS[SAFE] <= 0.38, 1, 0) +
        IF(BBAS[CARING] >= 0.05 && BBAS[CARING] <= 0.38, 1, 0) +
        IF(BBAS[RESPONSIVE] >= 0.05 && BBAS[RESPONSIVE] <= 0.38, 1, 0) +
        IF(BBAS[WELLED] >= 0.05 && BBAS[WELLED] <= 0.38, 1, 0) +
        IF(BBAS[EFFECTIVE] >= 0.05 && BBAS[EFFECTIVE] <= 0.38, 1, 0)
    )
RETURN
    CALCULATE(
        DISTINCTCOUNT(BBAS[Area]),
        ConditionCount >= 2
    )

4 Replies

  • HotChilli's avatar
    HotChilli
    Community Champion

    "ConditionCount >= 2" - it's this part here. It returns true or false but there's no column involved.

     

    What are you trying to do?

    • FT24TRGY5's avatar
      FT24TRGY5
      New Member

      Hi,

      I'm trying to create a measure that will count how many areas have had 2 or more categories with a value between 0.05 and 0.38

  • HotChilli's avatar
    HotChilli
    Community Champion

    You might be able to implement the IF section as a calculated column.  Then write a measure using DISTINCTCOUNT and filtering this new column.

    I'm just guessing at the structure of your table.

    If you want a proper answer, post some sample data (not a picture) and show the desired result

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi FT24TRGY5 

     

    Have you solved your problem? If not, could you please provide more raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

    How to provide sample data in the Power BI Forum

    How to Get Your Question Answered Quickly

    And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

    How to upload PBI in Community

     

    Best Regards

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