cancel
Showing results for
Did you mean:
Helper III

## Latest Run Date/Period End Date

Hello,

I have a file that contains the following columns:

Run Date

Portfolio Code

Period End Date

Net Asset Value

This file runs daily (except for weekends).

I need to pull the Net Asset Value for each period end date but the values can change day to day.

I only need it for the last "Run Date" before the "period end date" changes to the next period (ex: from 1/31/2023 to 2/28/2023).

For example, in the table below the period end date is 1/31/2023 for run dates 3/3 to 3/10.  The Period End Date changes to 2/28/2023 on Run Date 3/11/2023.  Therefore I need to pull the Net asset value of \$10,000 as of 3/10/2023 which is the last time we see the period end date of 1/31/2023 before it changes to 2/28/2023.

The matrix I set up will pull in a net asset value of 15,000 (10,000 +5,000) for period end date 1/31/2023 because it finds two values for that date.  This is incorrect and I am not sure how to fix it.

Run Date      Portfolio Code    Period End Date      Net Asset Value

3/3/2023          55555                   1/31/2023                  5,000

3/4/2023          55555                    1/31/2023                 5,000

3/5/2023          55555                    1/31/2023                 5,000

3/6/2023          55555                    1/31/2023                  5,000

3/7/2023          55555                    1/31/2023                  10,000

3/10/2023        55555                    1/31/2023                  10,000

3/11/2023        55555                    2/28/2023                   20,000

3/12/203          55555                    2/28/2023                   20,000

2 REPLIES 2
Helper III

Hello @amitchandak ,

Unfortunately that did not work. I cannot keep a filter on this report as it needs to pull in all period end (month end) values which consists of three years worth of data 2020 to present which contains 100 portfolio codes.

Super User

@gmasta1129 , Assume you have a filter on period end date or used in visual then

Try a measure like

Sumx(Summarize(Table, Table[Period End Date], Table[net Asset Value]), [net Asset Value])

or

calculate(Sumx(Summarize(Table, Table[Period End Date], Table[net Asset Value]), [net Asset Value]), filter(allselected(Table), Table[Period End Date] = max(Table[Period End Date]) ) )

Announcements

#### Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

#### Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

#### Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

#### Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors