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
richard_wylde
Helper IV
Helper IV

List of dates

 

Hello,
 
I need to create a column containing a  List of Dates   within a year of the current date. (to allow users to choose a date)
 
I've used the TODAY() function  :-
= CALENDAR ( DATEADD(TODAY(),-1,year), DATEADD(TODAY(),+1,year)
 
also an existing date column :-
= CALENDAR (DATEADD(INSTALMENTS[Renewal Date] ,-1,year) ,DATEADD(INSTALMENTS[Renewal Date] ,+1,year) )
 
...but still no joy. Could you show me what I'm doing wrong please

 

 

1 ACCEPTED SOLUTION

@richard_wylde 

Calendar(min(Date Column in your data),max(date column in your data))




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


View solution in original post

6 REPLIES 6
richard_wylde
Helper IV
Helper IV

Hi @Tahreem24 ,  sorry I don't understand - could you provide an example please ?

thanks.

VijayP
Super User
Super User

@richard_wylde 

You can see the screen Shot to achieve this

 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Thanks @VijayP - do you know what I could use for the dates ? - I've tried TODAY() however this doesn't work :-

Table = CALENDAR (DATEADD(TODAY() ,-1,year) ,DATEADD(TODAY() ,+1,year) )

@richard_wylde 

Calendar(min(Date Column in your data),max(date column in your data))




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Thanks @VijayP , that's great !

Tahreem24
Super User
Super User

YOu need to create a Table not the column. CALENDAR DAX returns table of dates.

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

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.