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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
vishwajeet121
Frequent Visitor

Measure - Can not convert value A of type text to type True/False

I have two tables one table having audit cycle and its ID, In other table i have audit cycle & non confirmity in that specific audit cycle. I want to find out the repetated non confirmity from these audit cycles.

 

I have created two tables & connected through model.

 

but measure is not working-

Calculate(countrows('iso_table', Allexcept('iso_table', 'iso_table_[clause no], filter(ALL('Audit _cycle'), 'Audit cycle'[ID))

error is- Cannot convert value A of type text to type true/false.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @vishwajeet121 ,

Please update the formula as bleow:

Measure  =
CALCULATE (
    COUNT ( 'iso_table'[clause no] ),
    FILTER (
        ALLSELECTED ( 'Audit _cycle' ),
        'Audit cycle'['iso_table')=selectedvalue('iso_table'['iso_table']
    )
)

If the above ones can't help you figure out, please provide some 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 link to share the required info:

How to provide sample data in the Power BI Forum

 

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

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @vishwajeet121 ,

Please update the formula as bleow:

Measure  =
CALCULATE (
    COUNT ( 'iso_table'[clause no] ),
    FILTER (
        ALLSELECTED ( 'Audit _cycle' ),
        'Audit cycle'['iso_table')=selectedvalue('iso_table'['iso_table']
    )
)

If the above ones can't help you figure out, please provide some 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 link to share the required info:

How to provide sample data in the Power BI Forum

 

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

vishwajeet121
Frequent Visitor

vishwajeet121_0-1710314790124.png

 with this table another table with NC unique ID & Audit Cycle 

 

why don't you provide the table with NC unique ID & Audit Cycle directly? and with the corresponding expected result?

FreemanZ
Super User
Super User

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.