cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Anonymous
Not 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?

Tks!

it is the Measure Code

1 ACCEPTED SOLUTION
Community Champion

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 Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

2 REPLIES 2
Community Champion

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 Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Anonymous
Not applicable

That's all Harsh, tks a lot for your help. It worsk!!!

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

#### Fabric Community Update - August 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors