Quantcast
Channel: SCN : Blog List - SAP BusinessObjects Web Intelligence
Viewing all articles
Browse latest Browse all 221

Sorting Month In Charts 4.0

$
0
0

In my project, I did face a requirement of sorting month in charts.

Let's create a simple report to demonstrate this. For this example we will be using two objects. in report

 

1. Month Name

2. Number of incident

 

When we create the column chart  using above objects as shown below :

 

 

Month.PNG

 

Requirement : Sorting Month Name in Chart.

 

Create a variable in report.

 

Month_Number:-   If[Month]=April Then "4" ElseIf[Month]=May Then "5" ElseIf[Month]=June Then "6" ElseIf[Month]=July Then "7" Else [Month]

 

Step 1: Assign Data in chart section

               Select below values

Month.PNG

Step 2:

 

Hide 'Month Number'

Month.PNG

 

Step 3: Right click on the chart and select 'Sort' option

 

Sort -> Manage Sorts ->Add

 

Month.PNG

Add Month Number and select order  as Ascending

 

 

You can then see the chart output as shown below :

 

 

Month.PNG

 

Hope this helps

 

Regards,

Pranay


Viewing all articles
Browse latest Browse all 221

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>