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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
JMB82
Frequent Visitor

Calculating Past Active Matters

Hello,

 

Needing some help. I am trying to determine the amount of past active matters. What I mean by past active matters is matters that were open in previous fiscal years and not yet been resolved. In my data set I have an Open Date and Resolution Date, so for Past Active, the open date would need to be prior to the selected fiscal year and the resolution date would need to be blank.

 

Thanks!

1 ACCEPTED SOLUTION

Hi @JMB82 

Please check below measure.If it's not your case,could you simplified your sample data and explain more about your expected output?For further,please refer to How to Get Your Question Answered Quickly

 

Measure =
CALCULATE (
    DISTINCTCOUNT ( Table1[Matters] ),
    FILTER (
        Table1,
        Table1[Open Date] <= MAX ( Dates[Date] )
            && Table1[Resolution Date] = BLANK ()
    )
)

Regards,

 

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @JMB82 

You may create a slicer table to select the year.Then create a measure like below.Attached sample file for your reference.

Measure =
CALCULATE (
    SUM ( Table1[Amount] ),
    FILTER (
        ALL ( Table1 ),
        Table1[Year]
            = SELECTEDVALUE ( 'Table'[Year] ) - 1
            && Table1[Resolution Date] = BLANK ()
    )
)

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for your response Cherie Chen. Not quite exactly what I need. Here is what my data looks like and what I have written so far.  The formula below isn't correct, it just brings back 1 number for all the years.

 

Matter listMatter list

 

Dates TableDates Table

 

 

FYPastActiveMatters = CALCULATE(

    DISTINCTCOUNT('�All Matters FY'[Matter #]),

    FILTER (

        ALL ( 'Dates'[Date] ), Year(Dates[Date] ) <= MAX ('Dates'[FYKEY] )), ISBLANK('�All Matters FY'[Resolution Date]))

 

 

Hi @JMB82 

Please check below measure.If it's not your case,could you simplified your sample data and explain more about your expected output?For further,please refer to How to Get Your Question Answered Quickly

 

Measure =
CALCULATE (
    DISTINCTCOUNT ( Table1[Matters] ),
    FILTER (
        Table1,
        Table1[Open Date] <= MAX ( Dates[Date] )
            && Table1[Resolution Date] = BLANK ()
    )
)

Regards,

 

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors