Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Olá,
Estou tentando encontrar uma solução para conectar estas duas tabelas de forma que a os dados de META da tabela dimensão LOJAS seja desmembrada no nível da tabela fato VENDA que está segmentada pelo a nível de vendedor (ou seja venda total vendedor por vendedor daquele período).
A coluna que conecta elas é a Loja.
O desmembramento precisa ser a META da Loja distribuída para cada vendedor. A quantidade de vendedores por loja é flexível, po aumentar ou diminuir ao longo do período e cada loja, geralmente, tem uma quantidade diferente da outra.
O cálculo pode ser feito linha a linha em uma coluna nova ou em uma medida, o que funcionar. A base não é grande então calcular linha a linha não é um problema.
Exemplo:
Meta Loja 1 = $350.000
Se forem 6 vendedores, precisa ser dividido por 6.
Então em cada linha seria $58333,33
Imagem 1: Tabela Dimensão Lojas
Imagem 2 : Tabela fato de vendas (O nível dos dados é por vendedor, então é um nível abaixo da loja)
Solved! Go to Solution.
for the numerator your formula is correct but if you have an active relationship between the two tables you can just use RELATED ( Lojas[Meta] )
For the denominator you can use
COUNTROWS ( CALCULATETABLE ( ARQVENDA, ALLEXCEPT ( ARQVENDA, ARQVENDA[LOJA] ) ) )
for the numerator your formula is correct but if you have an active relationship between the two tables you can just use RELATED ( Lojas[Meta] )
For the denominator you can use
COUNTROWS ( CALCULATETABLE ( ARQVENDA, ALLEXCEPT ( ARQVENDA, ARQVENDA[LOJA] ) ) )
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 23 | |
| 14 | |
| 10 | |
| 6 | |
| 5 |