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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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 Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.