Forum Discussion

mrpowrbihelp's avatar
mrpowrbihelp
Frequent Visitor
6 years ago

RankX with Filters

Hi,

 

I have a RankX formula that almost works.

I have a visual with a table that has each model we have but it needs to filter based on the account picked or the status of model ect.

This visual has multiple description fields for example, the intro date of the model the msrp ect and then measures with sales.

 

The current Rankx formula i'm using is:
Calculate(Rankx(All("Model column"),"Sales Measure"),AllSelected("Description fields"),AllSelected("Description fields"),AllSelected("Description fields"),AllSelected("Description fields"),AllSelected("Description fields"),AllSelected("Description fields"),AllSelected("Description fields"),AllSelected("Description fields"))

 

It almost gives me the result i am looking for. The table "model" is coming from is the Master product table and it has about 10,000 distinct models. So this rank formula says my lowest rank is 10,000, but i want it to be say 250 (the amount of models showing in the visual after the filters are applied)

How can i adjust the formula or it is possibly my relationships and i shouldn't be using the model column from the master product table?

 

Thank you!

3 Replies