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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
mkornel
Frequent Visitor

Timeline Axis

Hi all!

Will appreciate your help.

 

I added stacked column chart. My dataset contains values for 2 year, let's say pens in Jan-2019 = 100 and in Jan-2020 = 200.

When I drill down data to months, it seems that chart aggregates values for both months, i.e. Jan = 300.

 

I'm interested to display data for the last 12 months. Any suggestions?

 

Thanks a lot!

 
1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

Use the forked arrow drilldown instead of the parallel arrow drill down?


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

Use the forked arrow drilldown instead of the parallel arrow drill down?


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thanks! Could I ask for any advice on the other issues I have.

 

My chart looks like this.

Screenshot_3.png

1) How to display the last 12months (including current month)?

2) How to make naming shorter, e.g. Jan-20

 

@mkornel 

For display data you can use relative date slicer

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range.

 

You can create the date table and have month year and month year sort there

 

Month Year = format([date],"MMM-YYYY") // This will not sort correctly

Month year Sort : format([date],"YYYYMM") // Mark this as the sort column of first one

 

Sort_by_column.pngSortnewribbion.png

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.