Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hey hey fine folk of PBI!
Trying to create a reusable measure of customer sales per region, the issue is that the database does not have the regions setup.
My need is something like this
Count all sales for customers in asia.
Hi @CauseAndEffect,
Try using FIND or SEARCH, You would get something like this:
(Bare in mind, i'm not an expert so this may not work at all but it may give you an idea of how to fix your problem)
Asia_sales =
CALCULATE ( COUNT ( RawDataTable),
FILTER ('RawDataTable',
NOT (
ISBLANK (
FIND ("Indonesia North", [Company location], , BLANK ())))
|| NOT (
ISBLANK (
FIND ("Indonesia South", [Company location], , BLANK ())))
|| NOT (
ISBLANK (
FIND ("Indonesia east", [Company location], , BLANK ()))),
[Total Sales])
Solved it, just created a Calculate using the correct syntax
New Measure ->
Optimally i need to use an unlimied amount of filters since our customer location column has over 2k unique locations.
User | Count |
---|---|
41 | |
27 | |
23 | |
19 | |
16 |
User | Count |
---|---|
54 | |
35 | |
19 | |
18 | |
15 |