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
Karola
Advocate I
Advocate I

creating roling dates with 2 table visuals next to each other

I have to tables next to each other with data in it. 

what i want in the left table are the last 12 months when there is data for the second column 
then in the table to the right are the next 12 months. 

and everytime new data comes in for the customer a new month comes at the top of the left table etc etc. 

this is to easily compare data between the same month of a different year

A example of how i would have it. 

so when new data comes in, the topdate is 2022-02 and 11 months before. in the second table it should start then at 2021-02 and 11 months before. 


Image 13.png

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hi, @Karola 

 

In left table, you can directly use relative date in filter pane.

In right table, you need to create a measure and put it in filter pane to filter.

Like this:

Measure = 
var a=DATE(YEAR(TODAY()),MONTH(TODAY()),1)
var b=EDATE(a,-12)
var c=EDATE(a,-24)
return IF(MAX('Table'[Date]) >=c&&MAX('Table'[Date])<b,1,0)

vjaneygmsft_0-1643796045760.png

Below is my sample.

Did I answer your question? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.

Best Regards,
Community Support Team _ Janey

View solution in original post

3 REPLIES 3
v-janeyg-msft
Community Support
Community Support

Hi, @Karola 

 

In left table, you can directly use relative date in filter pane.

In right table, you need to create a measure and put it in filter pane to filter.

Like this:

Measure = 
var a=DATE(YEAR(TODAY()),MONTH(TODAY()),1)
var b=EDATE(a,-12)
var c=EDATE(a,-24)
return IF(MAX('Table'[Date]) >=c&&MAX('Table'[Date])<b,1,0)

vjaneygmsft_0-1643796045760.png

Below is my sample.

Did I answer your question? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.

Best Regards,
Community Support Team _ Janey

Nice, Thank you! I will take a look at this

lbendlin
Super User
Super User

In your calendar table add columns for "Same Date Last Year" , "Last Year"  etc.  Then you can use those columns to display the right table.

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
Top Kudoed Authors