Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hi,
I have this measure [xyz] that sums the last 12 month revenue:
@Sweetsoda
use this instead
XYZ=
CALCULATE(
[Total revenue],
DATESINPERIOD('Table Calendar'[Date], MAX('Table Calendar'[Date]), -365, DAY)
)
I Datesinperiod actually returns a table and should give you the desired result.
Hi Jngum,
Your solution changes a bit some of the values of [xyz] but doesn't change the behaviour of [x].
[x] only matches [xyz] on year subtotals but not at every month level).