SQL Server with Cognos Year, Month, Day conversion
Year
convert(Char(4),Year(CAST ( [Audit].[Run Reports].[Time stamp] AS Date )))
Month
case when convert(Char(2),Month(CAST ( [Audit].[Run Reports].[Time stamp] AS Date )))<10 then
'0'||convert(Char(2),Month(CAST ( [Audit].[Run Reports].[Time stamp] AS Date )))
else convert(Char(2),Month(CAST ( [Audit].[Run Reports].[Time stamp] AS Date )))
end
Day
convert(Char(8),Day(CAST ( [Audit].[Run Reports].[Time stamp] AS Date )))
IBM Vizualization Customizer : https://www.ibm.com/communities/analytics/cognos-analytics-
blog/cognos-business-intelligence-cognos-analytics-visualization-customizer/
Run VisCustomizer.jar
Open vis.sample.clusteredbar.zip from file menu
Amend the vizJSON
part as you required .
Select Chart Type Definition tab
Change the values of Bundle Name text box
Example : in place sbm any text you can mention
vis.sample.clusteredbar.zip to vis.sample.clusteredbar.sbm.zip
Select String Resources tab
Tag Metion : clusteredbar
Change the values of
lblChartType=clusteredbar to lblChartType=clusteredbar-sbm
Validate Bundle button
Upgrade Definition button
Generate Vis Bundle Definition button
click to save / save as
Give new name : vis.sample.clusteredbar.sbm.zip
import file to cognos
2.3 : Select String
Resources tab and change the values of lblChartType=Chord to
lblChartType=Chord-sbm 2.4 : Click on Validate
Bundle button to check the validity of changes. (Valid message will appears). 2.5 : Click on Upgrade
Definition button. (The definition was successfully upgrades message
will appears).
2.6 : Click on Generate Vis Bundle Definition button then click to save
the file with new name (ex: vis.sample.chord_sbm_10_2_2.zip.) 2.7
: Import the file to your Cognos Environment then you will have two
visualizations as below ================================================== If you are facing some issue while open library file ?
Open VisCustomizer.jar
Remove validate check
box then click on Draw chart.