Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
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,
This is my Tables
Correct Way
Power BI
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
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 63 | |
| 49 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 122 | |
| 118 | |
| 38 | |
| 36 | |
| 29 |