Forum Discussion
Anonymous
6 years agoNot applicable
Measure doesn't calculate dinamically
Hi guys,
I created a measure and it should be calculated a RANKX dinamically in the visual when I change the slicer (date field) , however it is not work. Somebody can help me to solve this?
I attached a pbix file with an example. Download pbix file
Tks!
it is the Measure Code
- Anonymous6 years ago
Hi Anonymous ,
Create these 2 measures
Total Vendas Sum = SUM(Vendas[TotalVendas])RANKI =IF(NOT(ISBLANK([Total Vendas Sum])),RANKX (FILTER(ALLSELECTED('Vendas'[Grupo],Vendas[Nome Cliente]),'Vendas'[Grupo] = MAX(Vendas[Grupo])),CALCULATE(SUM(Vendas[TotalVendas]))))Regards,
Harsh NathaniDid I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
2 Replies
- AnonymousNot applicable
Hi Anonymous ,
Create these 2 measures
Total Vendas Sum = SUM(Vendas[TotalVendas])RANKI =IF(NOT(ISBLANK([Total Vendas Sum])),RANKX (FILTER(ALLSELECTED('Vendas'[Grupo],Vendas[Nome Cliente]),'Vendas'[Grupo] = MAX(Vendas[Grupo])),CALCULATE(SUM(Vendas[TotalVendas]))))Regards,
Harsh NathaniDid I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
- AnonymousNot applicable
That's all Harsh, tks a lot for your help. It worsk!!!