This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Nice day
I need to filter the clients in Transforar Data whose code begins with the letter B and also those whose code is more than 5 characters long. This company has very different codes for its customers and in this case I need to see only those that meet one of these 2 conditions. Of course, I appreciate your help.
Solved! Go to Solution.
Try:
BAG QUANTITY =
CALCULATE (
SUM ( GVA53[QUANTITY] ),
FILTER (
GVA53,
LEFT ( GVA53[GVV12. COD_CLIENT], 1 ) = "B"
|| LEN ( GVA53[GVV12. COD_CLIENT] >= 5 )
)
)
Proud to be a Super User!
Paul on Linkedin.
@Syndicate_Admin , Try a measure like
calculate(count(Table[Column]), filter(Table, left(Table[Code],1) = "B" && len(Table[Code]) >=5))
Good afternoon
I put together this formula as you told me (I tried the same with COUNT and the same thing happens)
Fields have the following type:
QUANTITY = DECIMAL NUMBER
COD_CLIENT = TEXT
Sipudieras help me, it would be great. Thanks a lot
Marcela Martinez Pagola
Try:
BAG QUANTITY =
CALCULATE (
SUM ( GVA53[QUANTITY] ),
FILTER (
GVA53,
LEFT ( GVA53[GVV12. COD_CLIENT], 1 ) = "B"
|| LEN ( GVA53[GVV12. COD_CLIENT] >= 5 )
)
)
Proud to be a Super User!
Paul on Linkedin.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 29 | |
| 29 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 68 | |
| 45 | |
| 33 | |
| 24 | |
| 23 |