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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
prakritnepal-cn
Frequent Visitor

cannot convert value text to type true/false

Hi, 

 

I am trying to use sumx to calculate a total column. I get following error of cannot convert value type: 

prakritnepalcn_0-1626724602128.png

 

My formula used is (on the screenshot as well) : sumx( filter (table1, related (table2'[column with one to many join with table1)]) && bunch of criteria),Table1[balance]) 

 

table relationship screenshot: 

 

prakritnepalcn_1-1626724781976.png

 

How can I modify the formula to go around this error?

 

Thank you for your help

 

 

 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@prakritnepal-cn - I have to believe that the error is coming from your RELATED function. I would try removing that to see if it is in fact the issue.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Chilarejo5
New Member

Hi everyone,

 

I am trying to define define an "Implemented state" in a column; where I have to identified if it is "Imported into Production" or "Completed" this must be identified as Implemented:

 

If(OR(modified[Status] = "Imported into Production" , "Completed"),"Implemented","No Implemented")
 
Warning message is showing: Cannot convert value 'Completed' of type text to Type True/False
 
What can I do for fix it?
 
Thanks!
Greg_Deckler
Super User
Super User

@prakritnepal-cn - I have to believe that the error is coming from your RELATED function. I would try removing that to see if it is in fact the issue.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors