Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
Please help me in this issue. I have a month slicer where I can select only one month. I would like to create a measure (onto a card visual), which shows me the sum amount from the past 2 month + the selected month. So if I choose 2019 June, I want to see the sum of amounts from 2019 April, May and June! I use now the following measure but it shows me only the selected month's amount..:
I believe this should work for you.
Measure =
VAR period = DATESINPERIOD('Date'[Date];LASTDATE('Date'[Date]);-2;MONTH)
CALCULATE(
sum(GLEntry[Amount]);
ALL('Date');
GLEntry[New Main Group] = "Net Sales";
Period
)
Hi @tex628 ,
Many thanks it worked!
One more question please, it's the same issue but with one more difficulty..
I try the following measure:
Yes it works on it's own! Just if I put it into the Calculate function it's shows only the selected month value not the sum of the last 3 month.. Any idea?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!