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
Syndicate_Admin
Administrator
Administrator

Creating the Last 5 YTDs

Dear Community, good morning.

You would need to create a field that contains the last 5 YTDs (but not in multiple calculations), but in a single one to be able to use it as an x-axis in a Chart.

Since I have a calendar table, I was thinking of using an IF + Datesbetween function (

IF(DATESBETWEEN(Calendar[Date],DATE(2021,09,01),DATE(2022,10,31)),"Complies","Not Compliant"))

Hernan8925_0-1700749503079.png

, indicating that if the date was within a certain period, I would put the "YTD xxxx" field, but it doesn't work.

Could you help me or comment on your experience in similar situations?

Thank you!

1 REPLY 1
ryan_mayu
Super User
Super User

@Syndicate_Admin 

maybe you can try 

if([date] >=date(2021,9,1) && [date]<=date(2022,10,31),"cumple","no cumple")





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

Proud to be a Super User!




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.