Forum Discussion
Filter in New Measurement
Good afternoon, the question is simple but I cannot answer it.
I need to create a new measure that aggregates the sales of customers whose code starts with "B".
Total Customers = CALCULATE(SUM('GVA03'[AMOUNT], 'GVA03'[CODCLIE] ??
From now on, thank you very much
Syndicate_Admin try this:
Total Customers = CALCULATE(SUM('GVA03'[AMOUNT], LEFT('GVA03'[CODCLIE],1) ="B" )✨ Follow us on LinkedIn
Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
1 Reply
- parry2k
Super User
Syndicate_Admin try this:
Total Customers = CALCULATE(SUM('GVA03'[AMOUNT], LEFT('GVA03'[CODCLIE],1) ="B" )✨ Follow us on LinkedIn
Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡