Forum Discussion
mottamatheus835
4 years agoFrequent Visitor
Cruzar tabelas com DAX
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...
- 4 years ago
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] ) ) )
tamerj1
Community Champion
4 years agofor 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] ) ) )
mottamatheus835
4 years agoFrequent Visitor