US and Worldwide: +1 (866) 660-7555
Results 1 to 3 of 3

Thread: Problem using DateRangeInputComponent and CCC Bar Chart on CDE Dashboard

  1. #1
    Join Date
    Mar 2012
    Posts
    5

    Default Problem using DateRangeInputComponent and CCC Bar Chart on CDE Dashboard

    Maybe someone can help with the following problem. I'm trying display a ccc bar chart where the date range is defined by a DateRangeInputComponent.

    Therefore I created 2 parameters "date_from" and "date_to" as listeners to the DRIComponent. I also put them as Parameters in the Bar Chart

    My data source query for the chart looks something like this:

    Code:
    SELECT sales, count(employee_sales) as active   FROM table
      WHERE status = ''something"
      AND contract_date BETWEEN ${date_from} and ${date_to}
    When I put in a fixed date the chart works fine, put when I use the parameters I always get a "no data found" message. What am I missing here?

  2. #2
    Join Date
    Jul 2007
    Posts
    2,172

    Default

    We always work with strings. If your contract_date is actually a date, try changing the query so that you cast it to string
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

  3. #3
    Join Date
    Mar 2012
    Posts
    5

    Default

    thanks for your answer Pedro, works like a charm :-)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •