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.
Hi All,
I have monthly snapshot of my CRM that captures all opportunities and key information:
Snapshot Date | Account | Forecast Date | Amount |
2018-11-1 | ABC | 2019-1-22 | 1000 |
2018-11-1 | XYZ | 2018-12-22 | 2000 |
2018-12-1 | ABC | 2019-5-22 | 1500 |
2018-12-1 | XYZ | 2019-1-15 | 2000 |
I'm trying to create a measure from this table that sums the amount for any opportunity scheduled to close 3 months from the snapshot date. I've tried the following,
Rolling = CALCULATE(SUM('OppHistory'[Amount]),FILTER('OppHistory','OppHistory'[Forecast Date]>='OppHistory'[Snapshot Date]),FILTER('OppHistory','OppHistory'[Forecast Date]<=DATEADD('OppHistory'[Snapshot Date],3,MONTH)))
but for some reason, when I put this into a chart where the axis is "snapshot date" it cuts off the last two months. Can anyone help me with this measure?
Hi,
The answer should be 5000. This measure works
=SUMX(FILTER(SUMMARIZE(Data,[Snapshot Date],[Account],"ABCD",EDATE(MIN([Snapshot Date]),3),"EFGH",MIN([Forecast Date]),"IJKL",SUM(Data[Amount])),[EFGH]<=[ABCD]),[IJKL])
Hope this helps.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
97 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |