Hi
I need some help. I have an events table that lists individual events each with a start date and end date (end date will be blank until the event has actually finished). The user selects a reporting month and I need to calculate the number of days that each event is open until the last day of the reporting month eg - if the start date was 3/11/14 and the reporting month is Dec 14, the calculation is 31/12/14 less 3/11/14.
I get the reporting month from a pivot table (only one row selected when the user picks a date from a slicer).
What is the syntax for the last day of the reporting month?
What is the formula to calculate the number of days? I have tried the following but get an error:
Days open:= if(COUNTROWS(values(dataEvents[Date Closed]))=1,
IF(isblank(values(dataEvents[Data Closed])),TODAY()-dataEvents[Start Date],2),
3)
Thanks
I need some help. I have an events table that lists individual events each with a start date and end date (end date will be blank until the event has actually finished). The user selects a reporting month and I need to calculate the number of days that each event is open until the last day of the reporting month eg - if the start date was 3/11/14 and the reporting month is Dec 14, the calculation is 31/12/14 less 3/11/14.
I get the reporting month from a pivot table (only one row selected when the user picks a date from a slicer).
What is the syntax for the last day of the reporting month?
What is the formula to calculate the number of days? I have tried the following but get an error:
Days open:= if(COUNTROWS(values(dataEvents[Date Closed]))=1,
IF(isblank(values(dataEvents[Data Closed])),TODAY()-dataEvents[Start Date],2),
3)
Thanks