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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
gy_1982
Frequent Visitor

Dateinperiod issue

Dear all ,

 

I would like to show the last 12 months in a slicer. 

So, I am using datesinperiod() to create rolling 12 months dates .But I get the error message . 

And ,Is the method suitable for this scenario?

 

Thanks.

 

gy_1982_0-1678714576404.png

 

1 REPLY 1
WinterMist
Impactful Individual
Impactful Individual

@gy_1982 

 

I believe for you to do this, you must use a date column with DISTINCT dates (no duplicates).  Try using the date column from the 'Date' table instead.

 

Regards,

Nathan

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.