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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
vishwajeet121
Regular 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
v-yiruan-msft
Community Support
Community Support

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-yiruan-msft
Community Support
Community Support

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
vishwajeet121
Regular 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.