cancel
Showing results for
Did you mean:
Highlighted
Frequent Visitor

## 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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Champion

## Re: Measure doesn't calculate dinamically

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
Highlighted
Community Champion

## Re: Measure doesn't calculate dinamically

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)

Highlighted
Frequent Visitor

## Re: Measure doesn't calculate dinamically

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

Announcements

#### August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

#### Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

#### Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

#### Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Solution Authors
Top Kudoed Authors