Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello,
I have a table of deals, which contains all the deals with the date, the amount, the customer names (ParentAccountId).
I already created a "Cumulated" measure that works fine (orange and blue in the screenshot below). However, i want to create a column that will keep, for each customer, the related cumulated amount for all the deals closed before the deal's date.
For this purpose, I created a column:
Column = CALCULATE(SUMX(OPPORTUNITY,OPPORTUNITY[Amount USD]),FILTER(OPPORTUNITY,OPPORTUNITY[DEAL DATE]<=EARLIER(OPPORTUNITY[DEAL DATE]))
This column seems to indeed calculate the cumulated, but for all parent accounts, and not only the related customer, as it shows in red in the screenshot (it shows the table for 2 customers only, that's why the numbers are big).
Do you have an idea?
Thanks ahead!
Solved! Go to Solution.
HI @Pepperi
Try this
Column = CALCULATE ( SUMX ( OPPORTUNITY, OPPORTUNITY[Amount USD] ), FILTER ( OPPORTUNITY, Opportunity[ParentAccountId] = EARLIER ( Opportunity[ParentAccountId] ) && OPPORTUNITY[DEAL DATE] <= EARLIER ( OPPORTUNITY[DEAL DATE] ) ) )
HI @Pepperi
Try this
Column = CALCULATE ( SUMX ( OPPORTUNITY, OPPORTUNITY[Amount USD] ), FILTER ( OPPORTUNITY, Opportunity[ParentAccountId] = EARLIER ( Opportunity[ParentAccountId] ) && OPPORTUNITY[DEAL DATE] <= EARLIER ( OPPORTUNITY[DEAL DATE] ) ) )