Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Sorting of latest 4 months data in bar chart using dimensional limits

Hi All,

I am trying to display latest four months data in a bar chart and my sorting is not properly working. Currently it is getting displayed as shown below. But I need the monthyear to be displayed in right to left descending

Untitled.jpg

What I am doing currently doing is

Create a monthsort field as below

year(TempDate)&num(month(TempDate),'00') as monthsort

Use monthsort field for sorting

Untitled.jpg


Show only first 4 values in dimensional limits as below

Untitled.jpg

How to make this sorting proper Nov-17 on right hand side . Please suggest

Thanks and Regards

Praveena

4 Replies
vinieme12
Champion III
Champion III

can you post the full screenshot? just to make sure you don't have anything else check except Sort by Expression for Month field and nothing for region field

also try below

NUM(year(TempDate)&(month(TempDate),'00')) as monthsort

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
dinuwanbr
Creator III
Creator III

Hi,

Instead of first 4 select largest 4 in limit dimension and sort ascending order.

PFA

Rgds,

Tharindu

Anonymous
Not applicable
Author

HI tharindhu and Vineet

Thank you fr your prompt response

Setting largest values gives me something like below

Untitled.jpg

Nov, Oct missing as Largest will take the largest will return the values based on first expression in the chart. My Nov. oct values are smaller than other months data and it is missing

dinuwanbr
Creator III
Creator III

Hi,

Can u upload a sample.

Rgds,

Tharindu