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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi All,
After some advice.
I have a calendar table and a sales table.
As there is a lag in reporting, I am unable to use the current month and previous month measures to report for these said months.
Is there a way to do a current month -1 and a previous month -1 measure? I will need this primarily for a card visual.
thanks
Solved! Go to Solution.
Hi @grayFox
you can use the below measures
Sales Last Month =
CALCULATE(
[Sales],
PREVIOUSMONTH( 'Calendar'[Date] )
)Sales Last Month -1 =
CALCULATE(
[Sales Last Month],
PREVIOUSMONTH( 'Calendar'[Date] )
)
Later add Date column filter to your card visuals like below.
Hi @grayFox
you can use the below measures
Sales Last Month =
CALCULATE(
[Sales],
PREVIOUSMONTH( 'Calendar'[Date] )
)Sales Last Month -1 =
CALCULATE(
[Sales Last Month],
PREVIOUSMONTH( 'Calendar'[Date] )
)
Later add Date column filter to your card visuals like below.
Hi Mariuz,
Thanks so much, this worked. The solution was simpler than I thought!
One small tweak to make the suggestion work, I needed to change the filter as suggested from 'Day' to 'Month'
@grayFox ,Create calendar till max sales date
calendar =calendar(Min('Sales'[Date]),Max('Sales'[Date]))
Or create measure like
This Month (Max) =
var _max = maxx('Sales','Sales'[Date])
var _min = Minx('Sales','Sales'[Date])
return
CALCULATE(SUM('Sales'[Sales]), FILTER(all('Date'), 'Date'[Date]<=_max && 'Date'[Date]>=_min))
last Month (Max) =
var _max = maxx('Sales',dateadd('Sales'[Date],-1,month))
var _min = Minx('Sales',dateadd('Sales'[Date],-1,month))
return
CALCULATE(SUM('Sales'[Sales]), FILTER(all('Date'), 'Date'[Date]<=_max && 'Date'[Date]>=_min))
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 70 | |
| 51 | |
| 42 | |
| 29 | |
| 22 |
| User | Count |
|---|---|
| 142 | |
| 119 | |
| 56 | |
| 37 | |
| 32 |