Hi Pavithra,
You can create a dataitem like this in your prompt query
min([Date] for [YearMonth])
and exclude weekends and holidays in your filter.
and set that as use value and still have the [YearMonth] as display in the prompt
Where [Date] and [YearMonth] comes from your calendar table,
Br Rene
#IBMChampion
------------------------------
René Kent Nielsen
Brand manager
CogniTech A/S
Herning
------------------------------
Original Message:
Sent: Wed August 16, 2023 09:46 AM
From: Pavithra N
Subject: How to calculate First business day of month
Hi ,
I have a requirement that i need to consider values only on first business day of selected month in prompt. That is first business day should not consider weekends and Holidays.
Say for ex : i am selecting july 2023 ,the it should consider July 3 since july 1 and 2 falls on weekend . If July 3 is holiday then it should consider july 4th.
I have calendar table which has weekdays and weekends and Holiday table which has list of holidays .
Using these 2 tables how can i calculate first business day of month. Please suggest
Thanks in advance.
------------------------------
Pavithra N
------------------------------