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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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