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

Reply
powerbiexpert22
Impactful Individual
Impactful Individual

show only 2 months in table prior to selected month value

i am using year and month slicers in my report, i want to display only those months which are 2 months prior to selected month and including selected month in my table. please see below pbix for reference

https://drive.google.com/file/d/1O6ku0iojtiNDUZSAlHlpzSvUxkZ2psgO/view?usp=drive_link

 

 

example1: if user select year as "2024" and month as "may" then table should display months starting from march 2024 until may 2024 as shown below

example2: if user select year as "2024" and month as "aug" then table should display months starting from jun 2024 until aug 2024 

example1:

powerbiexpert22_0-1727134722043.png

 

example2:

powerbiexpert22_1-1727134932519.png

 

 

 

 

  

1 ACCEPTED SOLUTION

@powerbiexpert22 

updated the pbix file, pls see the attachment below

11.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
powerbiexpert22
Impactful Individual
Impactful Individual

Hi @ryan_mayu 

thanks, I also want to display rolling 2 months sum based on selection 

example

powerbiexpert22_0-1727143243082.png

 

@powerbiexpert22 

updated the pbix file, pls see the attachment below

11.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




ryan_mayu
Super User
Super User

@powerbiexpert22 

pls see the attachment below

11.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.

Top Solution Authors