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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
waleed111
Helper V
Helper V

CLENDAR function

when i write this formula in pbi it show same value for all rows:

date = CALENDAR(MIN('List View'[start date]), MIN('List View'[start date]))
date.PNG

what is the problem?

 
2 ACCEPTED SOLUTIONS

@waleed111 

I think you are creating a column. You need to create a table.

1.PNG





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

Proud to be a Super User!




View solution in original post

Hi @waleed111 ,

 

Are you trying to create a date dimension table in Power BI? Just as mentioned by ryan_mayu, use create table not calculated column. 

 

 

datetable = CALENDAR(MIN('List View'[start date]), MAX('List View'[end date]))

 

 

If you want to create a date dimension table that are suitable for multiple date granularity, you could refer to Using a Date Dimension Table in Power BI

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

 

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@waleed111 ,

This is strange

 

Try like

date = CALENDAR(MIN('List View'[start date]), Max('List View'[start date]))

 

or

date = CALENDAR(MIN('List View'[start date].date), Max('List View'[start date].date))

 

Can you share a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

date = CALENDAR(MIN('List View'[start date]), MAX('List View'[end date]))
it show this error: A table of multiple values was supplied where a single value was expected.

Hi @waleed111 ,

 

Are you trying to create a date dimension table in Power BI? Just as mentioned by ryan_mayu, use create table not calculated column. 

 

 

datetable = CALENDAR(MIN('List View'[start date]), MAX('List View'[end date]))

 

 

If you want to create a date dimension table that are suitable for multiple date granularity, you could refer to Using a Date Dimension Table in Power BI

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

 

@waleed111 

I think you are creating a column. You need to create a table.

1.PNG





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

Proud to be a Super User!




Anonymous
Not applicable


Use below code, You are using same reference date twice.
date = CALENDAR(MIN('List View'[start date]), MAX('List View'[start date]))
Anonymous
Not applicable

Use CALENDARAUTO function for that column:

date=CALENDARAUTO('List View'[start date])

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.