Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
grayFox
Regular Visitor

Card Visuals -Time Intelligence

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

 

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

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.

 

 

image.png

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

View solution in original post

3 REPLIES 3
Mariusz
Community Champion
Community Champion

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.

 

 

image.png

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

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'

amitchandak
Super User
Super User

@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))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors