Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello guys,
I need to calculate the client loading (distinct products) grouping it in the different profile segments. I did try first to create a measure like distinct number of products/distinct number of clients but obviously it is not enough because this has to calculate the distinct number of products by each client number and then summarize it before divide for the number of clients. Does any know hou to pull this off?? Example:
Like the example above, the formula should be: Cliente Loading = number of products/mumber of clients an so then the results by profile segment are:
Profile Segment | Client Loading |
Total | 13/5 = 2,6 |
Target | 6/3 = 2 |
Non Target | 7/2 = 3,5 |
Thanks in advance for the help.
Solved! Go to Solution.
Hi @filipe197,
Here are the formulas i wrote
Clients=CALCULATE(MIN(Data[Value]),Data[Attribute]<>"Current Price")
Products=DISTINCTCOUNT(Folha3[Product])
Client Loading=[Products]/[Clients]
Hi @filipe197,
If you share some sample data/pbix file, it will help for us to clarify your scenario and do some test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Hello @v-shex-msft
I have replicated the example in a pbix file:
It's all about solving what i shared in my first post, which i am not figuring out how to do so.
Thanks a lot,
Filipe
Hi @filipe197,
Here are the formulas i wrote
Clients=CALCULATE(MIN(Data[Value]),Data[Attribute]<>"Current Price")
Products=DISTINCTCOUNT(Folha3[Product])
Client Loading=[Products]/[Clients]
Hello @Ashish_Mathur
About your formula of Products, the ideia is to calculate the distinct products but by each client, so for target it should be 6 and for non-target it should bem 7. Let's see:
For the target we have client 123456789 which have 2 distinct products (A+B), client 125632444 which have 3 distinct products (A+B+C), and client 145320028 which have 1 distinct product (B). So the total distinct products of target by client is 2+3+1 = 6.
Can you do this?
Thanks,
filipe197
Hi,
The formula for Products should be:
=SUMX(SUMMARIZE(Folha3,Folha3[Client number],"ABCD",DISTINCTCOUNT(Folha3[Product])),[ABCD])
Hope this helps.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
104 | |
95 | |
80 | |
67 | |
62 |
User | Count |
---|---|
138 | |
107 | |
104 | |
82 | |
63 |