The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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
Thank you in advance for your help!
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.
@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]) ) )
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
114 | |
80 | |
78 | |
44 | |
39 |
User | Count |
---|---|
150 | |
116 | |
68 | |
64 | |
58 |