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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
JoanElGran1899
Frequent Visitor

How can i create a new colum, which is the last 30days of a last 30 days?

Hi everyone,
I am here again with more doubts to solve, can anyone help me? jeje

My problem is the next one:

I have two slicers of different calendars tables and the first one I filtered about the last 30 days, but the second one I have to filter it about the last 30 days of the first one.

I mean, the first slicer  (16/08/2021-14/09/2021) and the second one ( 17/07/2021-16/08/2021).

The first slicer was quite easy to did it:

 

JoanElGran1899_0-1631712208292.png

JoanElGran1899_1-1631712218032.png



But with the second slicer, I have no idea to do it automatic...

JoanElGran1899_2-1631712556187.png

 



Kind regards,
att:JoanElGran ( the biggest one)

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@JoanElGran1899 , as of now, you can not initialize the range slicer based on some function 

 

You can create a column in your date table and use that

Date Type = SWITCH(TRUE(),'Date'[Date]<=TODAY() && 'Date'[Date] >= today() -30,"Last 30"
,'Date'[Date]<=TODAY()-31 && 'Date'[Date] >= today() -60,"Last to Last 30"
,"Other")

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@JoanElGran1899 , as of now, you can not initialize the range slicer based on some function 

 

You can create a column in your date table and use that

Date Type = SWITCH(TRUE(),'Date'[Date]<=TODAY() && 'Date'[Date] >= today() -30,"Last 30"
,'Date'[Date]<=TODAY()-31 && 'Date'[Date] >= today() -60,"Last to Last 30"
,"Other")

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.