Forum Discussion
Johnsnowlife
8 years agoHelper III
Finding first date shared by multiple products
I am trying to find the first date where my table has information for all selected portfolios. My table looks like this. I'm thinking of something like this (written in english): Min (i...
- 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] ) )
Ashish_Mathur
8 years agoSuper User
Hi,
Why should there be 2 dates selection routes - you have dragged dates both to the filter section and are also using it as a slicer. Keep any one of them. Select a date/date range there and then see the result of my formula. If you still face problems, please let me know exactly with which selection do you face a problem.
Johnsnowlife
8 years agoHelper III
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] )
)