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.
Bom dia,
Estou precisando fazer um comparativo do custo do vendedor x Rentabilidade.
Tenho uma planilha (Vendas) com as vendas realizadas onde tenho um campo que é o Lucro que teve na Venda e quantos gerou de comissão ao vendedor e tenho uma tabela (Salarios) com o salario fixo por mês dos vendedores.
Gostaria de agrupar vendedor, somando a qtde de meses que teve venda dele e multiplicar essa qtde pelo valor salario, conforme ex. "Modelo Desejado"
Alguém poderia me ajudar?
Solved! Go to Solution.
Hi @h2danilo,
Try this formula as a measure, please.
Measure = SUMX ( SUMMARIZE ( 'BI_Venda', BI_Venda[Ano], BI_Venda[Cpf_Vendedor] ), CALCULATE ( MIN ( BI_Salario[Salario] ) * DISTINCTCOUNT ( BI_Venda[Mes] ) ) )
The "Cross filter direction" should be Both.
Best Regards,
Hi @h2danilo,
If you have proper relationships, try this measure, please.
Demo Measure = MIN ( 'Salarios'[Salario] ) * COUNTROWS ( 'Vendas' )
Best Regards,
Hi My friend,
Hi @h2danilo,
Try this formula as a measure, please.
Measure = SUMX ( SUMMARIZE ( 'BI_Venda', BI_Venda[Ano], BI_Venda[Cpf_Vendedor] ), CALCULATE ( MIN ( BI_Salario[Salario] ) * DISTINCTCOUNT ( BI_Venda[Mes] ) ) )
The "Cross filter direction" should be Both.
Best Regards,
Check this DAX formula, as a "new table", and see if works:
Caro amigo brasileiro, sugiro você escrever em inglês! Aqui 99% das perguntas e respostas são feitas nesse idioma.
Hello fellow brazilian, i suggest you wrinting in english, because is the main language used in this community.
***
Em todo o caso, algumas dúvidas:
- Vc está usando EXCEL ou POWERBI? Se for o primeiro, sabe usar POWER PIVOT/ e DAX?
- Qual o resultado esperado, uma nova tabela "física" ? uma tabela como visual do PBI?
- Pode disponibilizar o dado no one drive? Fica mais fácil para "colar" as fórmulas
I'm Sorry my friend. I didn't know about default language!
Follows the example in MSSQL:
I would like to do it in Power BI. Salary of seller multiplied by amount of months that the seller had a sale
Best Regards
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 |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |