cancel
Showing results for
Did you mean:

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a \$100 discount. Register Now

Helper I

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

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

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)

Helper I

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

Announcements

#### Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

#### Power BI Monthly Update - February 2024

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

#### Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

#### Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors