COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: woMa on 30 Jan 2020 07:15:46 AM

Title: Filter for particular column alone
Post by: woMa on 30 Jan 2020 07:15:46 AM
Hi folks,
I create a report budget and actual till date, I need one more column as Prev as last day working hours for that particular client alone.
while i using filter it apply every column in table.
Is any possibility to create a filter for particular column alone?
How to resolve this problem?

Many thank you in advance.

regards Wolfgang
Title: Re: Filter for particular column alone
Post by: BigChris on 30 Jan 2020 09:02:00 AM
You need a calculation for that column rather than a filter.

Case
  when [YourDateField] = [PreviousWorkingDay] then [YourMeasure]
  else 0
end


You might need to wrap a total around that.
Title: Re: Filter for particular column alone
Post by: woMa on 31 Jan 2020 08:03:32 AM
Hello folks,
that's how I did it.

I do this in the formula for the data item:
instead of<Wert>
then case when <Filter>then <Wert>else null end

Only the filter does not pull. The restriction does not work. When I use it in the normal filters it works properly.
I find it very strange.  :-\

I wish you a nice Sunny WE.
VG Wolfgang
Title: Re: Filter for particular column alone
Post by: Andrei I on 11 Feb 2020 02:27:18 PM
Look at running-total
It will generate a Window Aggregate Analytic function (like  SUM(col) over (partition by ...) )
Example:
https://www.cognoise.com/index.php/topic,36212.msg119396.html#msg119396 (https://www.cognoise.com/index.php/topic,36212.msg119396.html#msg119396)