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
zgrshn
Regular Visitor

the numbers of date to dd.mm.yyyy , and get only last week dates

Hello Dear All

 

I have a table like this (the "Date" Column type is "Date/Time"),

2016-11-01_13-12-43.png

 

 

and ı get the dash like this 

2016-11-01_13-02-00.png

 

I deleted the year,quarter and Month from the "date" Axis, and I get

2016-11-01_13-03-02.png

 

and as you see there are only the numbers of date .

 

But I want to do it with only short time (dd.mm.yyyy)

 

I can create a new column ,change the type of date to TEXT and use the left formula , but I think it is not true way .because after it, I must create a filter and get ONLY last week data (There is data in the last 2 years on my table.)

 

 

 

 .pbix file here

1 ACCEPTED SOLUTION
Anonymous
Not applicable

That automatic hierarchy under Date with Year, Quarter, Month etc. lets you use the drilldown feature - see https://powerbi.microsoft.com/en-us/guided-learning/powerbi-learning-2-6a-explore-time-based-data/  

 

You should be able to get just the (short) date if you want by clicking the drop-down beside that Date field under Visualisations, and tick 'Date' instead of 'Date Hierarchy'.  This should give you an entry for each date on the X axis, but you'll lose the drill-down feature linked above.

View solution in original post

2 REPLIES 2
v-sihou-msft
Employee
Employee

@zgrshn

 

in Power BI, when you put a date field into a visual, it will generate a date hierarchy automatically. To have date appear on visual only, you just need to select "Date" instead of "Date Hierarchy" as @Anonymous suggested.

 

7.PNG

To filter the last two week data, you can apply visual level filter like below:

8.PNG

 

Regards,

Anonymous
Not applicable

That automatic hierarchy under Date with Year, Quarter, Month etc. lets you use the drilldown feature - see https://powerbi.microsoft.com/en-us/guided-learning/powerbi-learning-2-6a-explore-time-based-data/  

 

You should be able to get just the (short) date if you want by clicking the drop-down beside that Date field under Visualisations, and tick 'Date' instead of 'Date Hierarchy'.  This should give you an entry for each date on the X axis, but you'll lose the drill-down feature linked above.

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.