Hi
I have a list called ListA.

I have added a Gallery with a Date Picker (dtp) and also added a label to show if the selected date is the Quarter 1,2,3 etc.
I am able to show if the date picker is selected then based on the month, ts shows Q1 through Q4 (1 Year) in the label using the below.
If(Month(dtp.SelectedDate) in [1,2,3],
Date(Year(dtp.SelectedDate), 3,31),
If(Month(dtp.SelectedDate) in [4,5,6],
Date(Year(dtp.SelectedDate), 6,30),
If(Month(dtp.SelectedDate) in [7,8,9],
Date(Year(dtp.SelectedDate), 9,30),
If(Month(dtp.SelectedDate) in [10,11,12],
Date(Year(dtp.SelectedDate), 12,31),
If(Month(dtp.SelectedDate) in [1,2,3],
Date(Year(dtp.SelectedDate) +1,3,31),
If(Month(dtp.SelectedDate) in [4,5,6],
Date(Year(dtp.SelectedDate) +1,6,30),
If(Month(dtp.SelectedDate) in [7,8,9],
Date(Year(dtp.SelectedDate) +1,9,30),
If(Month(dtp.SelectedDate) in [10,11,12],
Date(Year(dtp.SelectedDate) +1,12,31),
If(Month(dtp.SelectedDate) in [1,2,3],
Date(Year(dtp.SelectedDate) +2,3,31),
If(Month(dtp.SelectedDate) in [4,5,6],
Date(Year(dtp.SelectedDate) +2,6,30),
If(Month(dtp.SelectedDate) in [7,8,9],
Date(Year(dtp.SelectedDate) +2,9,30),
If(Month(dtp.SelectedDate) in [10,11,12],
Date(Year(dtp.SelectedDate) +2,12,31)
))))))))))))
This works in the label by showing the last date of the 3rd Month month as far as it falls within the selection.
What i want to achieve is to use Q1 to represent the first 3 months using the Start Column as the basis. ie,
When 5/2/2024 is selected, It should show Q1 instead of 8/31/2024. and so on!
Thanks.