RANKX with TABLE VISUALIZATION fields from two different tables

gusio

New Member
Joined
Feb 20, 2014
Messages
23
My table Visualization has the following values:
Store ID, Type, Ranking, SalesTotal. I've added RankX formula to rank my data , it works fine... but....

SALES TOTAL = SUM(powerBI_data[Current])

Ranking = if(hasonevalue(powerBI_data
[StoreID]),(RANKX(ALL(powerBI_data[StoreID]), [SALES TOTAL])))

Now when I am trying to add Values from a linked table my ranking is off?

I wish I could add Salesperson Name which comes from SalesPerson Table
and add StoreDescription which comes from Store Table , how can I do this without ruining my ranking?
Thank You,
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Sorry to be critical when you are asking for help, but your question is nowhere near clear enough for me to understand. What are the tables and columns in your data? What are the relationships between tables, and are they one or bi directional? You say you added RANKX, is that a measure or calculated column?

On the face of it, your ranking formula is removing filters from the storeid, but not other columns. I would expect any filters applied to other columns to still apply. In absence of a more detailed description, replace the ALL part of your expression with CALCULATETABLE ( VALUES ( PowerBi_data[StoreID] ), ALL ( PowerBI_data ) ).
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top