Forum Discussion
Dates and relationships
- 7 years ago
Your measures are currently calculating the total number of assignments that has a specific startdate/enddate. If you place them both in cards without applying any filters, they will give you the exact same value as every assignment you have will include both start and enddate.
hi v-frfei-msft
Ok, but this is a dashboard and I sort of need to use the visual card. I use two different measures and two differet cards, so it should work?
The thing I'm wondering about is how to ask for start and end date, cause I get the same result on both.
v-frfei-msft wrote:Hi Anonymous ,
If you put your measures in card visual and you did not filter them. Then the results should be same. You can try to put the two measures in table visual toget with then EngagementType column, then you will get excepted result.
Your measures are currently calculating the total number of assignments that has a specific startdate/enddate. If you place them both in cards without applying any filters, they will give you the exact same value as every assignment you have will include both start and enddate.
- Anonymous7 years agoNot applicable
Thanks tex628 , now I understood :)
Do you also know how I can count assignmentsid and filter on startdate is greater less than today and end date is greater than today?
- tex6287 years ago
Community Champion
Do i understand you correctly that you want to count the total number of assignments that are currently active? (Started but not ended)
- Anonymous7 years agoNot applicable
tex628 Yes :)
I was thinking this should work, but it gave me me 113, and it should have been over 200
candicates on assignments = CALCULATE(DISTINCTCOUNT(Assignments[CandidateId]); FILTER(Assignments; Assignments[StartDate]<TODAY()&& Assignments[EndDate]>TODAY()))
Or this one returns 113 as well:
candicates on assignments = CALCULATE(DISTINCTCOUNT(Assignments[CandidateId]);Assignments[StartDate] < TODAY(); Assignments[EndDate] > TODAY())