Forum Discussion
Dates
- 5 years ago
Anonymous , When you create a date table and mark it date column it will ask for date that will become Key. So you will not have a hierarchy.
You can create a custom hierarchy or have another date column that can have hierarchy
Date 1 = [Date]
- 5 years ago
Hi Anonymous
you have to keep two differences in mind:
-
The first icon is used for a table that is set as calendar table. In the calendar table, you can create any own hierarchies. In model view, simply drag the month column over the year column, and so on.
-
The second icon marks a column that contains dates and is internally managed by Power BI Desktop and provided with a date hierarchy. This operation can be influenced in the options settings. You have no influence on these hierarchies!
Take a look at tab File > Option and settings > Option > Load Data (Global) > Time intelligence > Auto date/time for new file.
Take a look at tab File > Option and settings > Option > Load Data (Current File) > Time intelligence > Auto date/time.
With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut) -
Hi!
Im trying to have a graphic by week.
The dates are between these weeks: 27 /2020 and 2/2021
The problem is that the graphic doesnt understand w1 and w2 of 2021 should go later w53 2020. And they appear before w27/2020.
When i put the dates by day instead of weeks, it works ok! but not with the weeks 😞
I created a table with the dates:
- Anonymous5 years agoNot applicable
Could you not add a new column to your date table, which specifies the unit of time that you are looking for?
Maybe by using a SWITCH statement you could say for example:Date (UK format) Desired format
1/1/2021 W53
Not a perfect solution and I'm sure cleverer people than me will have more insight, but that could get the job done.
- Sanmelmer5 years agoRegular Visitor
Hi ! and thanks for your reploy
I already have these columns , the problem is with the graphic ==>
- Anonymous5 years agoNot applicable
My guess would be that the format you have isn't a recognised date format, and that Power BI is interpreting it as a number?