Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

See when key Fabric features will launch and what’s already live, all in one place and always up to date. Explore the new Fabric roadmap

Reply
Stu11
Frequent 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.

 

 

Stu11_0-1650466933107.png

Thanks,

 

Stu

1 ACCEPTED SOLUTION
johnt75
Super User
Super 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
)

View solution in original post

2 REPLIES 2
Thejeswar
Super User
Super 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?

 

 

johnt75
Super User
Super 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
)

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

Check out the May 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.