Hi,
I have a Time dimension on the "pages" (filter) section. I want to create a calculated measure, where I want to return the number of workdays using the DateDiffWorkdays function. So, I need to retrieve the Min and Max date of my selection (assuming multiple selection).
How can I do that (using EazyBI 4.6.0 and Jira 7)
Thanks for your help!
Hi @Jerome Renaud,
You could generate the set of all days and get the first and last item from it. Please try the following formula
DateDiffWorkdays(Generate(
    ChildrenSet([Time].CurrentHierarchyMember),
    Descendants([Time].CurrentHierarchyMember, [Time].[Day])
  ).Item(0).StartDate,
  Tail(Generate(
    ChildrenSet([Time].CurrentHierarchyMember),
    Descendants([Time].CurrentHierarchyMember, [Time].[Day])
  )).Item(0).StartDate
)
Lauma / support@eazybi.com
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
 
 
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.