Welcome to Knowage Q&A, where you can ask questions and receive answers from other members of the community.
0 votes
1 view

Dear Experts,

I have defined the filter in Cockpit for Table widget but when executing with filters it is not showing any data. I had performed the following.

1. Defined the Query like "DOC_SALES_UNIT_COST_BY_MONTH" data set that is Example with Knowage.

select t.the_month,
DATE_FORMAT(t.the_date,'%d-%m-%Y') as the_day,
t.month_of_year, round(sum(unit_sales),2) as UNIT_SALES,
 round(sum(store_sales),2) as SALES,
 round(sum(store_cost),2) as COSTS
  FROM sales_fact f inner join time_by_day t 
 on (f.time_id=t.time_id) 
 where t.the_year=$P{Year}
 and t.the_month = 'April'
 group by t.the_month, t.the_day,t.day_of_month

2. After that defined the "PARAMETERS" in dataset as following
Name : "Year"

Type : String

Default Value : 2015

Multivalue : Null

3. Defined the Analytical Driver that is already available with Knowage example i.e. "Year"

4. Create the new Cockpit with Table widget and saved and defined the "DOCUMENT ANALYTICAL DRIVER DETAILS"

Title : "Year"

Analytical driver : "Year"

Url Name : Year

with all other parameters remained default.

5. Now when trying to filter the table widget it is not filtering the data in the widget.

Environment Knowage 6.1.1, Windows 7 64bit, Tomcat, Chorme
in Cockpit, Dashboard and Console by (860 points)

1 Answer

+1 vote
 
Best answer

Hi,

    I guess that you would like to filter table data using thee value assigned to the analytical driver while executing the cockpit document (even if it's not so explicit in your request...).

Please apply the following steps:

  • Switch cockpit document to edit mode.
  • Open Cockpit Menu > Data Configuration.
  • Expand the parameter list of the dataset.
  • Click on magnifier icon and select the analytical driver from the list in order to link dataset parameter to value of analytical driver.
  • Confirm every change and save the cockpit document.
Regards,
Francesco
by (3.8k points)
selected by
Thanks a lot, really it is very helpful and my issue has resolved. Thanks again.
...