Forum Discussion
RonaldvdH
Post Patron
7 years agoHelp me understand an error in a formula
Goodevening, One of my formula's (which always worked) just returned an error which i can't explaing. Roughly translated it states that: A startdate in the function 'Calendar' may not be pas...
Anonymous
7 years agoNot applicable
Hi,
Can you share your DAX please?
Thanks.
RonaldvdH
Post Patron
7 years agoAnonymous sure thing, should have added it in the first place :)
Doorlooptijd Schades in Werkdagen = VAR YourDate = if(IsBlank([afgehandeld]); TODAY(); [afgehandeld])
RETURN
COUNTROWS(
FILTER(
ADDCOLUMNS(
CALENDAR(
[binnengekomen];
YourDate
);
"DayofWeek";
WEEKDAY(
[Date];
2
)
);
[DayofWeek] <> 6 && [DayofWeek] <> 7
))
- v-eachen-msft7 years ago
Community Support
- RonaldvdH7 years ago
Post Patron
v-eachen-msft the first date for [binnengekomen] is 01-03-2019 and the first date in de 'Date' table is 01-01-2019 so that should be correct right ?
- v-eachen-msft7 years ago
Community Support
Hi RonaldvdH ,
Sorry, I didn't make it clear.
Firstly, you need a new measure to show "YourDate" directly.
Measure = if(IsBlank([afgehandeld]); TODAY(); [afgehandeld])
Then you could use two card visuals to show [binnengekomen] and [Measure]. Check if the start date is past the end date.