March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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.
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
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.
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
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.
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
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.
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
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 ,
could you share a sample PBIX File?
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
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.
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
134 | |
91 | |
89 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |