Forum Discussion
Finding first date shared by multiple products
- 8 years ago
Thanks for all the help!
These are the formulas I used to reach my desired result.
FirstSharedDate = CALCULATE ( MAXX ( SUMMARIZE ( ALLSELECTED ( AllPerfMnthly[Portfolio] ), [Portfolio], "ABCD", MIN ( AllPerfMnthly[Date] ) ), [ABCD] ), ALLEXCEPT ( AllPerfMnthly, AllPerfMnthly[Portfolio] ) ) InceptionDate = CALCULATE ( FIRSTNONBLANK ( AllPerfMnthly[Date], AllPerfMnthly[Date] ), ALLEXCEPT ( AllPerfMnthly, AllPerfMnthly[Portfolio] ) )
Hi Johnsnowlife,
I think i have solved the problem. However, i need tocheck my result. Please paste a larger data set and also show your expected result for each fund. In your dataset, please show decimal numbers so that i can compare my result with yours.
- Ashish_Mathur8 years agoSuper User
Hi Johnsnowlife,
Try these calculated field formulas
Date of investment. This field is not really required. It is just for your information.
=CALCULATE(MIN(Returns[Date]),ALL('Calendar'))Date of inititation for return calculation
=MAXX(SUMMARIZE(ALL(Returns),[Fund],"ABCD",MIN(Returns[Date])),[ABCD])
Returns
=CALCULATE(SUM(Returns[Performance]),DATESBETWEEN('Calendar'[Date],[Date of initation for return calculation],MAX('Calendar'[Date])))You may download the file from here.
- Johnsnowlife8 years agoHelper III
That hasn't worked for me.
Try this link for my full dataset with your measures.
If the Portfolios selected are "Equity Fund" and "ALSI" I need to get my begin date to be "2006/06/30".
If I select "Equity Fund" and "ALSI" and "Balanced Fund" I need to get my begin date to be "2013/10/31".
- Ashish_Mathur8 years agoSuper User
Hi Johnsnowlife,
It is working fine. I changed the formula a bit and removed the visual level filters. The file is at the same link.
- Ashish_Mathur8 years agoSuper User
Hi,
That link does not work.