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

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

Reply
Anonymous
Not applicable

How to derive Date from Date Title

Hi all,
I have a client with many Excel workbooks with the title as the week ending date, e.g. we 14-11-2021.
Inside the workbook are spreadsheets that list the days of the week, as shown below.


Is there any way to derive the Date of the spreadsheet (days) in Power Query? Or if I am restricted to DAX where can I start?


DateSnip.JPG

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

Hi @Anonymous ,

You can use the Table.ColumnNames function to derive the column title.

For example this sample.

vkalyjmsft_0-1666235161490.png

You can right click the query field to create a blank query

vkalyjmsft_1-1666235188106.png

Then put the below code in the advanced editor.

let
Source = Table.ColumnNames(#"Table")
in
Source

Get a new list query presenting the column title.

vkalyjmsft_2-1666235345185.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

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

View solution in original post

1 REPLY 1
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

You can use the Table.ColumnNames function to derive the column title.

For example this sample.

vkalyjmsft_0-1666235161490.png

You can right click the query field to create a blank query

vkalyjmsft_1-1666235188106.png

Then put the below code in the advanced editor.

let
Source = Table.ColumnNames(#"Table")
in
Source

Get a new list query presenting the column title.

vkalyjmsft_2-1666235345185.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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 Kudoed Authors