Forum Discussion
CalculateTable
- 4 years ago
Thanks. The Portfolio of two would be 50% each. I would use the DAX to calculate that. I cannit use Matrix as I want to use that table.
- 4 years ago
Hi VikrantC ,
Actually I'm not very clear about your expected result. By my understanding, I create a table that summarizes categories by date.
Table 2 = ADDCOLUMNS ( VALUES ( 'Table'[Dates] ), "Company", CONCATENATEX ( FILTER ( ALL ( 'Table' ), 'Table'[Dates] = EARLIER ( 'Table'[Dates] ) ), 'Table'[Company], "," ), "Price", SUMX ( FILTER ( ALL ( 'Table' ), 'Table'[Dates] = EARLIER ( 'Table'[Dates] ) ), 'Table'[Price] ) )Get this result.
If this is not your expected result, could you please display the expected result in Excel.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyjIf this post helps, then please considerAccept it as the solution to help the other members find it more quickly.
VikrantC I have several questions...
First, what do you mean when you say "I want to create a CalculateTable to show the three portfolios...". Are you saying you want to create three table or matrix visualizations? If so, CALCULATETABLE is completely unnecessary for this.
Second, you mention portfolio value. It's impossible to have portfolio value with the data you shared. You have stock prices but no quantities. You might be able to assume the same number of shares given you said 50/50 split between Microsoft and Apple, but my inner accountant is screaming quantity!
Third, how are you measuring portfolio performance?
Thanks. The Portfolio of two would be 50% each. I would use the DAX to calculate that. I cannit use Matrix as I want to use that table.