Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I need to Sum TCVs based on MAX Modified Date and group by Project Name
| Week Start | Total | Project Name | Status | ModifiedDate | TCV |
| 03/20/2021 0:00 | 2 | A | Approved | 04/11/2021 9:30 | 15 |
| 03/20/2021 0:00 | 1 | A | Approved | 04/11/2021 9:30 | 15 |
| 03/27/2021 0:00 | 2 | B | Approved | 04/11/2021 9:30 | 300 |
| 03/27/2021 0:00 | 3 | B | Approved | 04/11/2021 9:30 | 300 |
| 03/27/2021 0:00 | 3 | B | Approved | 04/11/2021 9:30 | 300 |
| 03/27/2021 0:00 | 2 | B | Approved | 04/21/2021 7:41 | 230 |
| 03/20/2021 0:00 | 1 | C | Approved | 04/11/2021 9:30 | 25 |
| 03/20/2021 0:00 | 1 | C | Approved | 04/11/2021 9:30 | 25 |
| 03/20/2021 0:00 | 1 | C | Approved | 04/11/2021 9:30 | 25 |
| 03/27/2021 0:00 | 2 | C | Approved | 04/11/2021 9:30 | 25 |
| 03/27/2021 0:00 | 4 | C | Approved | 04/11/2021 9:30 | 25 |
| 03/27/2021 0:00 | 3 | C | Approved | 04/21/2021 7:41 | 7 |
So for the Week of 03/27/2021, MAX Modified Date of Project B is 14/21 so TCV is 230 and the MAX Modified Date of Project C is 04/21 so TCV is 7.
Total TCV - 230 + 7 = 237
Similarly, for the Week of 03/20/2021, MAX Modified Date of Project A is 04/11 so TCV is 15, and the MAX Modified Date of Project C is 04/11 so TCV is 25.
Total TCV - 15 + 25 = 40
And if I select for both weeks 03/27/2021 and 03/20/2021, MAX Modified Date of Project A is 04/11 so TCV is 15,
and the MAX Modified Date of Project B is 04/21 so TCV is 230,
and the MAX Modified Date of Project C is 04/21 so TCV is 7.
Total TCV - 15 + 230 + 7 = 252
I tried 2 measures but both not working.
Solved! Go to Solution.
Hi, @Anonymous
Please check the below picture and the sample pbix file's link down below.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Hi, @Anonymous
Please check the below picture and the sample pbix file's link down below.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Working as expected, thanks for the help
@Anonymous , Try a measure like
Measure =
VAR __id = MAX ('Table'[ID] )
VAR __date = CALCULATE ( MAX('Table'[NUM] ), ALLSELECTED ('Table' ), 'Table'[ID] = __id )
CALCULATE ( MAX ('Table'[Status] ), VALUES ('Table'[ID] ),'Table'[ID] = __id,'Table'[NUM] = __date )
How do get the Sum of TCV?
I tried but the value is incorrect
Measure2 =
VAR _id = MAX ('TimeEntries'[ID] )
VAR _date = CALCULATE ( MAX('TimeEntries'[ModifiedDate] ), ALLSELECTED ('TimeEntries' ), 'TimeEntries'[ID] = _id )
return CALCULATE(SUM(TimeEntries[TCV]), VALUES ('TimeEntries'[ID] ),'TimeEntries'[ID] = _id,'TimeEntries'[ModifiedDate] = _date )
it's returning me 230 but supposed to be 252 for 2 weeks
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 21 | |
| 12 | |
| 9 | |
| 5 | |
| 5 |