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.
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!
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 |
---|---|
107 | |
93 | |
77 | |
63 | |
50 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |