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
mottya
Frequent Visitor

Comparing between periods

Hi

 

I want to compare the selected period to the parallel period, but like this graph:

mottya_0-1668941032270.png

I like the chart will add the 2021 Q4 Oct with the capital, recurring, and Rent... amounts in the parallel period like this:

mottya_0-1668969266109.png

 


Can I do that?

Thanks

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@mottya , I that can slicer need to be on an independent date table

 

//Date1 is independent Date table, Date is joined with Table
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = minx(allselected(Date1),Date1[Date])

var _max1 = date(year(_max)-12, month(_max) , Date(_max) )

var _min1 = date(year(_min)-12, month(_min) , Date(_min) )
return
calculate( sum(Table[Value]), filter('Date',  ('Date'[Date] >=_min && 'Date'[Date] <=_max) || 

('Date'[Date] >=_min1 && 'Date'[Date] <=_max1)

) )

 

Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@mottya , I that can slicer need to be on an independent date table

 

//Date1 is independent Date table, Date is joined with Table
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = minx(allselected(Date1),Date1[Date])

var _max1 = date(year(_max)-12, month(_max) , Date(_max) )

var _min1 = date(year(_min)-12, month(_min) , Date(_min) )
return
calculate( sum(Table[Value]), filter('Date',  ('Date'[Date] >=_min && 'Date'[Date] <=_max) || 

('Date'[Date] >=_min1 && 'Date'[Date] <=_max1)

) )

 

Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

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
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.