Skip to main content
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Helper I
Helper I

CALCULATE help with different filters

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
'Calendar'[Date] >= StartDate && 'Calendar'[Date] <= MaxDate

current measure to get prices of securities at every date:

current measure to calculate value of securities:


Super User
Super User

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.

Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Helpful resources

Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City


Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors