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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
geekmachine811
Frequent Visitor

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]))

 

geekmachine811_0-1616056323129.png

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

 

Any workaround?

6 REPLIES 6
v-eqin-msft
Community Support
Community Support

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

themistoklis
Community Champion
Community 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

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

@geekmachine811 

 

Can you send a snapshot of the table that you are trying to achieve?

So basically, I have a Benchmark table(Table1) that contains certain values based on a Parameter (Summary Activity).

geekmachine811_0-1616085522332.png

Each member(on a separate table 'Table2') needs to be benchmarked against the table above based on the count of 'Summary Activities'. 

So basically I would like my formula to be 'Count of  Agenda from Table2/Table1[Value]'

 

Note: Theres an existing relationship between Table 1 and Table 2.

Table 2 contains the names of each member plus the 'Agenda'. Agenda in this case is similar to

Summary Activity.

 

My Filter however has to  be on Table1[Attribute]

@geekmachine811  try something like below:

Measure = CALCULATE(COUNT(Tbl2[Agend]),FILTER(Tbl2,HASONEFILTER(Tbl2[Attribute])))
 
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.