Forum Discussion
Use date fields for from/to filter
Hi all,
I have a question about displaying table entries within a given date from/to in another table. Here we go:
There is a table with (Sprints) SprintName, SprintStartDate, SprintEndDate
There is another table (worklogs) with Developer, Logged Working hours, SprintName and a Timestamp.
How can I use the SprintStartDate, SprintEndDate to display only entries from the other table within this given timestamp?
Do I have to script something here?
many thanks for hints (sorry I am new on this)
best regards
sklement , Try a measure like
calculate(countx(filter(worklogs, worklogs[SprintName] = max(Sprints[SprintName]) && worklogs[Timestamp] >= Min(Sprints[SprintStartDate]) && worklogs[Timestamp] <= max(Sprints[SprintEndDate])),worklogs[SprintName]), values(worklogs[SprintName]))
- Anonymous5 years ago
Hi sklement,
I'd like to suggest you take a look at the following link about use 'crossjoin' function to expand the date fields, then you can simply mapping records with detailed date records for analysis.
Solved: Spread revenue across period based on start and en... - Microsoft Power BI Community
Regards,
Xiaoxin Sheng
2 Replies
- amitchandakSuper User
sklement , Try a measure like
calculate(countx(filter(worklogs, worklogs[SprintName] = max(Sprints[SprintName]) && worklogs[Timestamp] >= Min(Sprints[SprintStartDate]) && worklogs[Timestamp] <= max(Sprints[SprintEndDate])),worklogs[SprintName]), values(worklogs[SprintName]))
- AnonymousNot applicable
Hi sklement,
I'd like to suggest you take a look at the following link about use 'crossjoin' function to expand the date fields, then you can simply mapping records with detailed date records for analysis.
Solved: Spread revenue across period based on start and en... - Microsoft Power BI Community
Regards,
Xiaoxin Sheng