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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors