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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Need previous year data month wise in a line chart

Hi everyone, 

Hope you guys are doing great. I am new to POWER BI, I want to implement one thing that if i have admissions data that contains admission ID and a DATE Column that contains date in this format (dd-mmm-yy) so, I would like to display a line chart that contains Admissions on a monthly basis and also 1 year back data.

For eg: Now it is April 2020 so I want the data to publish in a line chart is of Mar 2020 to Apr 2019.

Thanks !

1 ACCEPTED SOLUTION

@Anonymous ,

 

Generally, you may try using bookmark. Create a button "admissions" which can be pressed and configured the action of the button. For more details, please refer to doc below:

https://docs.microsoft.com/en-us/power-bi/desktop-buttons#select-the-action-for-a-button

https://docs.microsoft.com/en-us/power-bi/desktop-bookmarks#using-bookmarks

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

You can use relative date slicer for that

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

 

In your date table, you can create a month year column and use that

Month Year = format([date],"mmm-yyyy")

You will also need a sort column for this

Month Year Sort = format([date],"yyyymm")

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

 

 

I am hosting a webinar on 25th April on Power BI, Check Details - https://www.linkedin.com/posts/amitchandak78_webinar-tech-techforgood-activity-6658266754378231808-y...

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

Hi @amitchandak , 

I got your point, but i can't use relative slicer thing as due to some UI Constraint, I will have to use some formula thing in the measure because I have a slicer that has a contains "admissions", by just pressing on this , I need my required line chart as descibed earlier.

Thanks !

@Anonymous ,

 

Generally, you may try using bookmark. Create a button "admissions" which can be pressed and configured the action of the button. For more details, please refer to doc below:

https://docs.microsoft.com/en-us/power-bi/desktop-buttons#select-the-action-for-a-button

https://docs.microsoft.com/en-us/power-bi/desktop-bookmarks#using-bookmarks

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.