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
Anonymous
Not applicable

Time intelligence with specific date of all days

Hello, I am probably blind, but cannot find a way how to set the following. 😕
I am using Time intelligence function within date format column. The hierarchy is created in order: Year, Quarter, Month, Day. Which is generaly correct. 

However, I need in its final "stage" get all the days of all the months (and quarter or years) - like 01.04.2021, 02.04.2021, ... 22.12.2021, 23.12.2021,...
With specific date of all days. Instead of just days (as 1 to x). 

Thank you very much in advance for any help. 🙂 

1 ACCEPTED SOLUTION
v-cgao-msft
Community Support
Community Support

Hi @Anonymous ,

 

You need to create a date table. For example.

Please create a new table.

date_table = CALENDAR(MIN('Table'[cal_eop]),MAX('Table'[cal_eop]))

You will get a table with consecutive date columns from [cal_eop] column minimum date to maximum date. It is common practice to apply this table as a date table in relations and calculations.

 

Please refer to these for ideas.

[Data Modeling] Three Ways to Create a Calendar Ta...

Creating a simple date table in DAX

Mark as Date table

 

Best Regards,
Community Support Team_Gao

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

5 REPLIES 5
v-cgao-msft
Community Support
Community Support

Hi @Anonymous ,

 

You need to create a date table. For example.

Please create a new table.

date_table = CALENDAR(MIN('Table'[cal_eop]),MAX('Table'[cal_eop]))

You will get a table with consecutive date columns from [cal_eop] column minimum date to maximum date. It is common practice to apply this table as a date table in relations and calculations.

 

Please refer to these for ideas.

[Data Modeling] Three Ways to Create a Calendar Ta...

Creating a simple date table in DAX

Mark as Date table

 

Best Regards,
Community Support Team_Gao

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Anonymous
Not applicable

Thank you very much @v-cgao-msft 🙂 

Anonymous
Not applicable

Hi @Ashish_Mathur

thank you, I have no calendar table actually. Only one column with all dates and the hierarchy is created by power bi time intel. function "under" this column (img bellow, sorry for non-english naming). I tried drag that column (within visual too) but nothing is happening, as the hierarchy is created from it (I guess). 

Filipo2_0-1649945944738.png

 

Hi,

You must create a Calendar Table via the Calendar function.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

Hi,

From the Calendar Table, just drag the Date column.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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