COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Topic started by: otsizh on 05 Oct 2005 01:09:31 PM

Title: [closed]Calendar
Post by: otsizh on 05 Oct 2005 01:09:31 PM
Hello,

I have to create a report something like on the pickture below. It is something like calendar for 2 years, where the red line indicates today day(ignore blue bars). Does anybody have any ideas how to create this?

Thank you.
Title: Re: Calendar
Post by: sir_jeroen on 05 Oct 2005 01:12:19 PM
Have you tried a crosstab with project names on row and dates in column?

Title: Re: Calendar
Post by: otsizh on 05 Oct 2005 01:15:38 PM
what dates should I put in the columns? I need all days for 2 years...
Title: Re: Calendar
Post by: sir_jeroen on 05 Oct 2005 01:18:58 PM
How about that?

Row 1yr
row 2MonthMonthMonth
Title: Re: Calendar
Post by: otsizh on 05 Oct 2005 01:28:37 PM
thanks,

what whould I put in the middle of the crosstab?
Title: Re: Calendar
Post by: sir_jeroen on 05 Oct 2005 01:43:02 PM
count (date) and after that some conditional formatting :
if (count(date) > 0 ) then ('blue') else('')
Title: Re: Calendar
Post by: otsizh on 05 Oct 2005 02:34:37 PM
what whould be right expression for conditional variable?
2005-10-05=[Year]+'-'+[Month]+'-'+[date]  ?
Title: Re: Calendar
Post by: sir_jeroen on 05 Oct 2005 02:37:05 PM
why do you want to do that?
If you do "count(date)" then you would get null or "1....31"
and not null means blue color...
Title: Re: Calendar
Post by: sir_jeroen on 05 Oct 2005 02:38:25 PM
you need the count(date) in order to get something in the crosstab in order to indicate that that date must be blue... you could also use "1" instead of "count(date)"
Title: Re: Calendar
Post by: otsizh on 05 Oct 2005 02:55:32 PM
thank you i will try that- it is kind of working......

but How would i do the current date vertical red line?
Title: Re: Calendar
Post by: sir_jeroen on 05 Oct 2005 02:57:45 PM
you must create a condition format for every day... So 730 conditions ....
Title: Re: Calendar
Post by: sir_jeroen on 05 Oct 2005 02:58:29 PM
if your case has been solved plz close it (how to do that read board rules)
Title: Re: Calendar
Post by: otsizh on 05 Oct 2005 03:16:15 PM
thank you for your advise,

but my problem is not solved yet...
Title: Re: Calendar
Post by: otsizh on 05 Oct 2005 03:51:52 PM
is it possible to do with chart item??
Title: Re: Calendar
Post by: sir_jeroen on 05 Oct 2005 04:20:34 PM
How do you think that would be possible?
Title: Re: Calendar
Post by: otsizh on 06 Oct 2005 10:14:55 AM
Quoteyou need the count(date) in order to get something in the crosstab in order to indicate that that date must be blue... you could also use "1" instead of "count(date)"

date is not measure-   How would I count date??
Title: Re: Calendar
Post by: Darek on 06 Oct 2005 12:57:35 PM
you can count anything you want, doesn't have to be a measure.
Title: Re: Calendar
Post by: sir_jeroen on 07 Oct 2005 02:08:37 AM
Little reminder: close the topic if it's been solved (see board rules)