March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have a power pivot, where I have calculated total value of each security (ISIN) by multiplying the balance of each security and multiplied each balance with the price of that security. When I have in pivot column ISINs and rows dates, then everything works fine. However, if I would like to see the value of the securities by clients (column ClientId), then it is not working. The mistake that the measure is doing, is that it is not at first calculating price and amount of each security, but it just calculates the total number of securities with the sum of all the prices of these securities at that date. How should the new measure look like?
current measure to calculate balance of securities:
=VAR MaxDate = MAX('Calendar'[Date])
VAR StartDate = MaxDate - 10*365 // Assuming a year has 365 days
RETURN
CALCULATE(
SUM('BloombergHindadeAbi'[Amount]);
FILTER(
ALL('Calendar'[Date]);
'Calendar'[Date] >= StartDate && 'Calendar'[Date] <= MaxDate
)
)
current measure to get prices of securities at every date:
=CALCULATE(MAX('BloombergHindadeAbi'[EURValue]);ALL('BloombergHindadeAbi'[Account]);ALL('BloombergHindadeAbi'[PortfolioID]);ALL('BloombergHindadeAbi'[Name&Surname]))
current measure to calculate value of securities:
=[SaldoTK]*[AllpricesEUR]
Hi @maasool model is not known. To propose some possible solution, please share sample data with expected output.
Usually, the best would be to get the last price (as you need it for valuation of securities on last day) into some column per item level (if it is ISIN) and then simply multiply quantity with price (if possible). This value could be summed, and matching with some Customer ID should be fine on customer level, as each ISIN could be assigned to some customer.
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
25 | |
16 | |
15 | |
7 | |
7 |
User | Count |
---|---|
37 | |
31 | |
16 | |
16 | |
12 |