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

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
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,215,404
Messages
6,124,715
Members
449,184
Latest member
COrmerod

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