Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi!
I have a graph that can present data per month or per week.
For week, this expression is used
Year(inc_create_date)&'-'& Week (inc_create_date)as Week,
The graph uses this sort expression:
Sort by expression:
=Max(Month(inc_create_date))
But the sorting in the graph is not correct.
How can this be solved?
How about if you create your week field like this
Dual(Year(inc_create_date)&'-'& Week (inc_create_date), WeekStart(inc_create_date)) as Week,
and then sort it numerically
Hi!
After a closer check I notice that the x-axis dimension uses a Master item object (=[$(vDim)]).
I think is uses Week and Month from this:
Dims:
LOAD
Dim,
RowNo() as DimSort
INLINE [
Dim
Week,
Month
];
Not sure if your suggestion still can be used?
I believe it should work... can you give it a shot.
The result looks a little different but still not OK
Is this view based on a selection? If it is, do you have set analysis in your expression to ignore selection in Week field or any other date and time field?
Hi!
The selection used is 'Week'. The graph should be able to show 'Week' or 'Month' data base on a selection.
That's why the Master item and the Dims load is used
I understand that... but I am not sure what all do you select in your dashboard except for selecting Dim.... would you be able to share a sample so that we can see your issue?
Hi!
Changed the MonthNames from jan.;feb.;mars;...... to 1;2;3;....
Then sorted the x-axis 'Alphabetically'
This seems to solve the problem with sorting for both Week and Month