cancel
Showing results for 
Search instead for 
Did you mean: 
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
Solution Supplier
Solution Supplier

@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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors
Top Kudoed Authors