Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
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".
Solved! Go to Solution.
Hi @Laura0403 ,
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
Hi @Laura0403 ,
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
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? 🙂
Hi @Laura0403 ,
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
Ahhh I understand. Thanks a lot 🙂
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
80 | |
40 | |
31 | |
27 | |
27 |