Forum Discussion

geekmachine811's avatar
geekmachine811
Frequent Visitor
5 years ago

Cannot Convert Value '' of type Text to type True/False

Hello, I am facing a rather frustrating issue. I want to return the count of values based on a filter and i keep on getting the erorr as per my subject. My measure is a s below:

 

Agenda Count = CALCULATE(COUNT('Retention Activities Master List'[Agenda]),FILTER(Sheet1,Sheet1[Attribute]))

 

Above is an example of data from table 'Sheet1'.
The 'Retention Activities ....' Table field [Agenda] is of type Text.

 

Any workaround?

6 Replies

  • themistoklis's avatar
    themistoklis
    Icon for Community Champion rankCommunity Champion

    geekmachine811 

    What is your filter that you aretrying to apply?

     

    You have the following statement which is incompete

    FILTER(Sheet1,Sheet1[Attribute])

     

    It should be something like :

    FILTER(Sheet1,Sheet1[Attribute] = "6M to 3M") but this will only show values for this attribute only

    • geekmachine811's avatar
      geekmachine811
      Frequent Visitor

      Exactly, I want it to be dynamic because I have several fields in place

      • Tahreem24's avatar
        Tahreem24
        Icon for Super User rankSuper User

        geekmachine811  try something like below:

        Measure = CALCULATE(COUNT(Tbl2[Agend]),FILTER(Tbl2,HASONEFILTER(Tbl2[Attribute])))
         
  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi geekmachine811 ,

     

    Sorry for that the information you have provided is not making the problem clear to me.🤔

     

    Could you please provide me with more details about your table and expected output or share me with your pbix file from your Onedrive for Business after removing sensitive data?

     

    Best Regards,
    Eyelyn Qin