Forum

Notifications
Clear all

Sorting stock dashboard by Market value instead of Alphabetical

5 Posts
2 Users
0 Reactions
163 Views
(@austinmark)
Posts: 4
Active Member
Topic starter
 

Hello,

Love the stock dashboard.

 

This array formula in the dashboard sorts the stock dashboard alphabetically:

=SORT(UNIQUE(FILTER(Ledger[Stock],SUMIF(Ledger[Stock],Ledger[Stock],Ledger[Units])<>0)))

 

Is there a simple modification that would sort it by Market Value, instead?  (descending)

 

Thanks

Mark

 
Posted : 25/02/2023 1:58 pm
(@austinmark)
Posts: 4
Active Member
Topic starter
 

Hello,

I figured it out and would like to share.  Two changes to accomplish this:

 

1. Remove the Sort from the Stock column.  It becomes:

=UNIQUE(FILTER(Ledger[Stock],SUMIF(Ledger[Stock],Ledger[Stock],Ledger[Units])<>0))

 

2. Add sort function to the Market Value column.  It becomes:

=SORT(D3#*E3#,,-1)

note: there are some optional arguments left blank for the sort function.  the -1 is for descending

 

Thanks

Mark

 
Posted : 26/02/2023 12:28 am
(@austinmark)
Posts: 4
Active Member
Topic starter
 

I spoke too soon.  The above modifications sorts the market value column according by market value, but it doesn't sort the other columns (and so the Stock columns don't match-up properly with the market value column).rn rnAny help as to how to sort entire dashboard list by market value would be appreciated!rn rnThanksMark

 
Posted : 26/02/2023 3:16 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Mark,

The best way is to create the 'Current Holdings' table in a separate workings sheet and then use the SORT function to bring the table into your dashboard sorted by the market value column. e.g.:

=SORT(B6:F11,5,-1)

Where B6:F11 contains the following columns:

  • Ticker
  • Industry
  • Units
  • Current Price
  • Market Value

Hope that points you in the right direction.

Mynda

 
Posted : 28/02/2023 8:49 pm
(@austinmark)
Posts: 4
Active Member
Topic starter
 

Yes!  That totally helps.  Thanks for the pointer!

 

Thanks
Mark

 
Posted : 01/03/2023 5:16 pm
Share: