Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
carolinne88
Creator
Creator

"Data from [First month of selected period] to [Last month of selected period]"

Hello guys. I need a tip. I want to put in a text object the following information: "Data from [First month of selected period] to [Last month of selected period]".

Example: If I select the months February, March, April and May, in my text object would appear "Data from February until May".

Can anyone help?

1 Solution

Accepted Solutions
carolinne88
Creator
Creator
Author

I got it.


Capitalize(Min(Date(data, 'MMM'))) & ' ' & 'a' & ' ' & Capitalize(Max(Date(data, 'MMM')))

View solution in original post

5 Replies
m_woolf
Master II
Master II

='Data from ' & month(min(YourDateField)) & ' to ' & month(max(YourDateField))

rubenmarin

Hi, or to show full month name:

='Data from ' & date(min(YourDateField), 'MMMM') & ' until ' & date(max(YourDateField),'MMMM')


And Capitalize() to set first character in caps:

='Data from ' & capitalize(date(min(YourDateField), 'MMMM')) & ' until ' & capitalize(date(max(YourDateField),'MMMM'))

carolinne88
Creator
Creator
Author

I had tried something similar, but it is not working.

m_woolf
Master II
Master II

What date field is the user selecting from? Can you post a sample qvw?

carolinne88
Creator
Creator
Author

I got it.


Capitalize(Min(Date(data, 'MMM'))) & ' ' & 'a' & ' ' & Capitalize(Max(Date(data, 'MMM')))