Skip to Content
Author's profile photo Didier MAZOUE

Charts windowing

Sometimes it could be interesting to display large number of values on a chart especially line or bar charts.

When we have hundreds of figures to display on a single chart, the chart becomes unreadable.

To solve this issue, we have need to filter the chart, add sections, etc., or anything to display something that makes the chart understandable.

For instance, this chart shows Sales Amount and Order Quantity over Country and Time per day with 4.5 years of data so it’s really difficult to understand the content.

Chart windowing - 1.png

Charts windowing

To make charts more readable I used tricks through input controls to create charts windowing.

In addition, I created a second input control to manage the period type to be displayed on the chart: year, quarter, month, week, day.

I created a measure variable to be used by an input control to manage the time window:

  • Moving periods: =RunningSum(1;Row;([Sales Territory Country]))

Then I created an input control based on this variable.

Chart windowing - 2.png

To manage the period type to be used by the chart, I created 2 other dimension variables:

  • Period Type: =1
  • The Period: =If ([Period Type] = 1) Then [The Date formatted]
    ElseIf ([Period Type] = 2) Then [The Week]
    ElseIf ([Period Type] = 3) Then [The Month]
    ElseIf ([Period Type] = 4) Then [The Quarter]
    ElseIf ([Period Type] = 5) Then [The Year]

Now “The Period” variable is used in the chart as dimension and “Period Type” variable is used by another input control.

Chart windowing - 3.png

Now I can change the time window.

Chart windowing - 4.png

Chart windowing - 5.png

Chart windowing - 6.png

Chart windowing - 7.png

I can also change the period type. By changing the period type I also need to adapt the moving periods to be in the range of the number of periods to be displayed.

Chart windowing - 8.png

Chart windowing - 9.png

You can download the Web Intelligence report attached to that publication.


Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Great trick Didier,



      Author's profile photo M Mohammed
      M Mohammed

      Good one Didier.


      Mahboob Mohammed

      Author's profile photo William MARCY
      William MARCY

      Great Webi trick !

      You've been added to Webi 4.x tricks : summary for a better visibility. Keep posting !