Forum Discussion
Cannot Convert value of type text to type True/False
- 6 years ago
Hi Anonymous
I think it may be the position of your NOT function which is causing the problem.
Try this instead (not tested):Volume = CALCULATE( DISTINCTCOUNT( 'Orders'[Volume_Cal] ), FILTER( 'Orders', 'Orders'[PROCESS] IN { "Posted", "Credit", "Open Items" } && ( 'Orders'[DOCUMENTTYPE] = "AB" || ( NOT ( TRIM( 'Orders'[DOCUMENTSTATUS] ) IN { "Ready Validation", "Not MVI" } ) || ISBLANK( TRIM( 'Orders'[DOCUMENTSTATUS] ) ) ) && 'Orders'[Open Status] = "In Process" ) ) )Best regards,
Martyn
If I answered your question, please help others by accepting it as a solution. - 6 years ago
I doubt the position of not, check and try
Volume = CALCULATE(DISTINCTCOUNT('Orders'[Volume_Cal]) ,FILTER('Orders', 'Orders'[PROCESS] in {"Posted","Credit", "Open Items"} && ('Orders'[DOCUMENTTYPE] = "AB" || (NOT(TRIM(('Orders'[DOCUMENTSTATUS])) in {"Ready Validation", "Not MVI"} ) || ISBLANK(TRIM('Orders'[DOCUMENTSTATUS]))) && 'Orders'[Open Status] ="In Process")))Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin
I doubt the position of not, check and try
Volume = CALCULATE(DISTINCTCOUNT('Orders'[Volume_Cal])
,FILTER('Orders',
'Orders'[PROCESS] in {"Posted","Credit", "Open Items"}
&& ('Orders'[DOCUMENTTYPE] = "AB"
|| (NOT(TRIM(('Orders'[DOCUMENTSTATUS])) in {"Ready Validation", "Not MVI"} )
|| ISBLANK(TRIM('Orders'[DOCUMENTSTATUS])))
&& 'Orders'[Open Status] ="In Process")))Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin