Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I create this Rankx data: .Rank CC = CALCULATE(rankx(ALLSELECTED(fConsolidado[Cod. C. Custo Cliente]);[.Total Geral]);all(fConsolidado[SubProduto])) and i got the correct information i was looking for:
But i need to filter only the TOP 10, when i apply the filter on VISUAL FILTER the rank # change and i am trying to figure out what happens and how can i fix it to mantain the same rank # after i apply the filter:
Could you please help me to fix it? I try to research on many articles but did not find how to fix it.
Thanks!!
Fdorta
Solved! Go to Solution.
Hi, i found the error, I create a new measure specifing the correct data i need. It Works. Thanks for everyone that could be trying to help me!!!
The new measure is:
.Total G Rankx = sumx(filter(fConsolidado; [produto] = "Hotéis");fConsolidado[Total Cliente]) + sumx(filter(fConsolidado; [produto] = "PASSAGENS AÉREAS");fConsolidado[Total Cliente]) + sumx(filter(fConsolidado; [produto] = "ALUGUEL DE CARRO");fConsolidado[Total Cliente]) + sumx(filter(fConsolidado; [produto] = "OUTROS SERVIÇOS");fConsolidado[Total Cliente])
then I use this measure as an expression of my Rankx:
.Rank CC = CALCULATE(rankx(ALLSELECTED(fConsolidado[Cod. C. Custo Cliente]);[.Total G Rankx]);all(fConsolidado[Produto]))
It works!
Hi, i found the error, I create a new measure specifing the correct data i need. It Works. Thanks for everyone that could be trying to help me!!!
The new measure is:
.Total G Rankx = sumx(filter(fConsolidado; [produto] = "Hotéis");fConsolidado[Total Cliente]) + sumx(filter(fConsolidado; [produto] = "PASSAGENS AÉREAS");fConsolidado[Total Cliente]) + sumx(filter(fConsolidado; [produto] = "ALUGUEL DE CARRO");fConsolidado[Total Cliente]) + sumx(filter(fConsolidado; [produto] = "OUTROS SERVIÇOS");fConsolidado[Total Cliente])
then I use this measure as an expression of my Rankx:
.Rank CC = CALCULATE(rankx(ALLSELECTED(fConsolidado[Cod. C. Custo Cliente]);[.Total G Rankx]);all(fConsolidado[Produto]))
It works!
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
118 | |
101 | |
71 | |
61 |