Hi All,
We are using IBM Cognos Analytics with Watson (11.2.0).
Currently in our data module, we have a fact table and working_date table. By right we will join this two table (fact.transaction_date = working_date.date) to calculate the total amount for given working days. Inside the working_date table we only have 2 columns, date and business_day_flag (Y as business days, N as non business days).
From the same data module I have created a report with static date prompt. Please refer to snapshot below for reference.

This is how I calculate the disburse amount with regards of working days from the Data Item Expression.
if ([C].[C_TDF_DM].[Sheet1].[transaction_date] in_range ?date_filter2? and [C].[C_TDF_DM].[Sheet1_1].[business_day_flag] = 'Y')
then ([C].[C_TDF_DM].[Sheet1].[disbursement_amount])
else (0)
I have unlocked the page to create a custom header. Can refer snapshot below as reference.

Now we have the challenge to calculate the working days based on the date_filter and put them inside the table list header. Is there a way to map the date_filter to a separate date table or something and calculate the working days from there?
Currently I can only get the total of days from first of months till date selected only. I just need to add a condition which check whether any date within the range (first of months till date selected) and their business_day flag = Y and total them up using the report expression for the table list header.
Any help is deeply appreciated.
Thanks and regards,
Aiman
------------------------------
Mohamad Aiman Arif Mohamat Saat
------------------------------