
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to use firstsortedvalue in a dimension
Hi all, this is my first post.
Need help trying to limit a dimension. I have created a chart and limit the chart to only show sales people in the top volume region.
I can find my top region by using =FirstSortedValue( region , -aggr( count(ordernumber), region ) )
But i don't know how to limit this to only show sales people in the top region. any help would be appreciated.
- « Previous Replies
-
- 1
- 2
- Next Replies »

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May be this as your calculated dimension
Aggr(If(Count(ordernumber) = Max(TOTAL Aggr(Count(ordernumber), region), region), region)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If displaying one region is what you always want then just create 2 expressions like the below
Exp1 : FirstSortedValue( region , -aggr(count(ordernumber),region))
Exp2: sum({<region={$(=FirstSortedValue( region , -aggr(count(ordernumber),region)))}>}sales)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Count({<region= {"=rank(Count(ordernumber),4)<= 10"}>} ordernumber)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sunny,
I need to display all of the sales people in the top region though. I don't believe this would do it.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Susant, sorry i wasnt being clear. i need to show all of the sales people in that region with a count of all of their sales.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Fawaz, Sorry I wasn't being clear. i need to display all of the sales people in that top region and a count of all of their sales.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May be this
Aggr(If(Count(ordernumber) = Max(TOTAL <region> Aggr(Count(ordernumber), region), SalesPerson), region, SalesPerson)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sunny, I tried that to and getting an error in expression

- « Previous Replies
-
- 1
- 2
- Next Replies »