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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Resident Rockstar
Resident Rockstar

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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