Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
I have a table that contains a list of Portfolios that are updated independantly periodically independantly and I want to display the latest date that each one of these portfolios were updates. In the table below, I want to calculate the LatestRollupdate for each Portfolio and then add an indicator for Latest/Not? I have used the following measures and column formulas but am unable to filter the measure by Portfolio. Any ideas?
Measure:
Last Date = CALCULATE(Table1[Rollup Date],ALL(Table1)) - Returns the laset date for whole table not filtered by Portfolio
Column:
Latest Portfolio = if(Table1[Rollup Date]=Table1[Last Date],"Latest","Not")
Portfolio | Rollup Date | Latest Rollup Date | Latest/Not? |
1 | 01-09-18 | 10-09-18 | Not |
1 | 02-09-18 | 10-09-18 | Not |
1 | 04-09-18 | 10-09-18 | Not |
1 | 10-09-18 | 10-09-18 | Latest |
2 | 03-09-18 | 05-09-18 | Not |
2 | 05-09-18 | 05-09-18 | Latest |
3 | 05-10-18 | 12-11-18 | Not |
3 | 11-11-18 | 12-11-18 | Not |
3 | 12-11-18 | 12-11-18 | Latest |
4 | 01-10-18 | 22-10-18 | Not |
4 | 02-10-18 | 22-10-18 | Not |
4 | 03-10-18 | 22-10-18 | Not |
4 | 22-10-18 | 22-10-18 | Latest |
Solved! Go to Solution.
Hi @sirgseymour,
You can use below formula to achieve your requirement:
Measure formula: Last Date = CALCULATE ( MAX ( 'Sample'[Rollup Date] ), ALLSELECTED ( 'Sample' ), VALUES ( 'Sample'[Portfolio] ) ) Calculate column formula: Is Last = VAR _lastdate = CALCULATE ( MAX ( 'Sample'[Rollup Date] ), FILTER ( ALL ( 'Sample' ), [Portfolio] = EARLIER ( 'Sample'[Portfolio] ) ) ) RETURN IF ( [Rollup Date] = _lastdate, "LastDate", "Not" )
Regards,
Xiaoxin Sheng
Hi,
Write these 2 calculated column formulas
Latest Rollup Date=CALCULATE(MAX(Table1[Rollup Date]),FILTER(Table1,Table1[Portfolio]=EARLIER(Table1[Portfolio])))
Latest/Not?=IF([Latest Rollup Date]=[Rollup Date],"Latest","Not")
Hope this helps.
Hi @sirgseymour,
You can use below formula to achieve your requirement:
Measure formula: Last Date = CALCULATE ( MAX ( 'Sample'[Rollup Date] ), ALLSELECTED ( 'Sample' ), VALUES ( 'Sample'[Portfolio] ) ) Calculate column formula: Is Last = VAR _lastdate = CALCULATE ( MAX ( 'Sample'[Rollup Date] ), FILTER ( ALL ( 'Sample' ), [Portfolio] = EARLIER ( 'Sample'[Portfolio] ) ) ) RETURN IF ( [Rollup Date] = _lastdate, "LastDate", "Not" )
Regards,
Xiaoxin Sheng
Thank you that worked!!1
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
117 | |
81 | |
48 | |
37 | |
27 |
User | Count |
---|---|
185 | |
73 | |
73 | |
50 | |
42 |