Forum Discussion
Stu11
4 years agoFrequent Visitor
Measure using current filters
Hi,
Wondering if you can help. In the table below you can see those ticket made in Oct (filtered) and the date they were closed.
Can you help me with another column? This will only sum those tickets which have been solved within the date filter (like Oct in the picture). Hope this makes sense. I guess getting the max date from the filter?
I understand row by row this doesn't look correct, but the totals do. And look good when I take 'Solved Date' out of the Matrix.
Thanks,
Stu
You could try a measure like
Num solved = var maxDate = MAX('Date'[Date]) var minDate = MIN('Date'[Date]) return CALCULATE( COUNTROWS('Table'), REMOVEFILTERS('Date'), 'Table'[Solved date] >= minDate && 'Table'[Solved date] <= maxDate )
2 Replies
- johnt75Super User
You could try a measure like
Num solved = var maxDate = MAX('Date'[Date]) var minDate = MIN('Date'[Date]) return CALCULATE( COUNTROWS('Table'), REMOVEFILTERS('Date'), 'Table'[Solved date] >= minDate && 'Table'[Solved date] <= maxDate ) - ThejeswarSuper User
Hi,
I think some more info might be required for someone to help you on this.
Give info like what is the expected output?What happens when a different month is selected?