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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Microsoft Employee
Microsoft 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors