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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Chandrashekar
Resolver III
Resolver III

Graphs Last 3 Months

Hello Team,

 

I was looking video(https://www.youtube.com/watch?v=d8Rm7dwM6gc) where we get last 6 months graph.

 

However in (14:49) they used Tabular Editor for calculation. Is it possible to get result without using Tabular Editor.

 

Kindly assist on the same.

 

Regards,

Chandrashekar B

1 ACCEPTED SOLUTION

Hello Amit,

 

I tried below measure but still it is showing 1 month rather than 3 months.

Last previous 12 month =
var date_max=maxx(ALLSELECTED(Date2),Date2[Date_created])
var date_min =date(year(date_max),month(date_max)-3,day(date_max))+1
Return
calculate(count(Source[number]),filter('date','date'[Date_created]<=date_max &&
'date'[Date_created]>=date_min))
 
Chandrashekar_1-1644477695674.png

 

 
Regards,
Chandrashekar b

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@Chandrashekar , Check these two

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

https://bielite.com/blog/last-12-months-from-selected-date-trailing-12-months-ttm/

 

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

Hello Amit,

 

I got the solution and I missed to click drill down button.

 

Regards,

Chandrashekar B

Hello Amit,

 

I tried below measure but still it is showing 1 month rather than 3 months.

Last previous 12 month =
var date_max=maxx(ALLSELECTED(Date2),Date2[Date_created])
var date_min =date(year(date_max),month(date_max)-3,day(date_max))+1
Return
calculate(count(Source[number]),filter('date','date'[Date_created]<=date_max &&
'date'[Date_created]>=date_min))
 
Chandrashekar_1-1644477695674.png

 

 
Regards,
Chandrashekar b

Hello Amit,

 

Can you please share pbix file as cannot able to download from link provided.

 

Regards,

Chandrashekar B

Hello Amit,

 

Thanks will check on it.

 

Regards,

Chandrashekar B

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.