Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi Community,
I have a problem with sellers' percentages. Depending on the customer, sales have to be distributed between two sellers. I had used the combination of queries to retrieve the percentage of each seller in Power Query Editor, to create a new custom column by multiplying sales by the percentage, but the result is not right. I tried to do the same with a calculated column, but I don't get the right amount.
Any ideas about how can I solve this issue?
Thanks to everybody for your support and help.
José Luis
Solved! Go to Solution.
Hi @jlarques
yes, the relationship is only between the costumer numbers not between the product categories.
You have to generate a key column for the combination of customer and product categorie.
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
Hi @mwegener
the model is only an example. Tell me what you think I must change to become consistent.
Thanks.
Hi @jlarques ,
I think for a relationship the Porcentaje should always add up to 100%.
As you can see in my screenshot, it is currently 300% for the customer.
Hi @mwegener
you're right and maybe this is the reason because the amount is not 50% in the case of Johnson Stone costumer, as you can see in the image below.
The amount for each seller would have to be 719.374,45€ instead of 3.451.673.15€.
Do you know if the relationship is the reason?
Hi @jlarques
yes, the relationship is only between the costumer numbers not between the product categories.
You have to generate a key column for the combination of customer and product categorie.
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
Hi @jlarques
try this Measure
VENTA =
SUMX (
'Reporte de Pedidos';
SUMX (
RELATEDTABLE ( 'Cliente x Comercial' );
'Reporte de Pedidos'[VALOR] * 'Cliente x Comercial'[Porcentaje]
)
)
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
Hi, @mwegener
thanks for your quick answer.
I tried to create a new calculated column with the total sales depending on the percentage, but the result is the same, as you can see in the images below.
The quantity is the same when I create a new measure.
Thanks again for your help.
Hi @jlarques ,
in my opinion, the DAX result looks good in the report.
But I'm not sure if your model is correct (consistent).
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
User | Count |
---|---|
128 | |
108 | |
99 | |
65 | |
62 |
User | Count |
---|---|
136 | |
113 | |
102 | |
71 | |
60 |