Forum Discussion
Cannot Convert value of type text to type true false
Hi,
I know there are a lot of solutions to this topic here. Unfortunatly I can't help myself by reading them.
I wanted to do calculate formula to get the values for the visual. I can't use my measure in the visual because of the error "Cannot Convert value of type text to type true false".
Thanks in advance 🙂
- Anonymous4 years ago
Hi Anonymous ,
Please use the below to shorten your code. Also could you check your data type for [Umsatz ohne GS] is it in text?Berechneter Frachtumsatz = = CALCULATE ( [Umsatz ohne GS], Prdo5_Sales[Artikel.Artikel Nr] IN { "FRACHT", "FR_EDI", "FR_AUTO", "FR_AUTO_MD", "FR_AUTO_X", "FR_EDIMAUT", "FRACHTKOST", "FRACHTP", "FR-HARDW", "FR-VBM", "FRACHT" } )
BR
4 Replies
- AnonymousNot applicable
Hi Anonymous ,
Please use the below to shorten your code. Also could you check your data type for [Umsatz ohne GS] is it in text?Berechneter Frachtumsatz = = CALCULATE ( [Umsatz ohne GS], Prdo5_Sales[Artikel.Artikel Nr] IN { "FRACHT", "FR_EDI", "FR_AUTO", "FR_AUTO_MD", "FR_AUTO_X", "FR_EDIMAUT", "FRACHTKOST", "FRACHTP", "FR-HARDW", "FR-VBM", "FRACHT" } )
BR- AnonymousNot applicable
Hi,
that worked, thanks a lot.
But I still don't understand why it worked. Can you maybe be so kind and explain it a little? 🙂
- AnonymousNot applicable
Hi Anonymous ,
This would be a syntax issue, the word "FRACHT" has been repeated in every filter argument.
In your case the text operator " || " would still work but would need to revised to follow as per 2nd example below:
BR