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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.