Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
i have exported csv dat which has got date in their source name. it is a daily download report. i want to create a custom column which extracts the date from the source name so that i can cretae the date column for the dataset.
An alternative way in PQ is to use this in a custom column
Text.BetweenDelimiters([Source.Name]," ",".",{0,1})
Hi @ahamedafridi18,
Here is a Dax query for a calculated column 'Date' to extract the date from the SourceName column and convert into date format
Hi @ahamedafridi18,
There are so many different ways to achieve that, just wondering how representative the image is...
For example any of these will do, just insert a Custom Column and copy an expression from below, replace "Source" with the column reference [Source.Name]
let
Source = "Detroit 21-02-2024.xlsx",
AlwaysBetween = Text.BetweenDelimiters(Source, " ", "."),
AtTheEnd = List.Reverse( Text.SplitAny( Source, " .") ){1}?,
Anywhere = List.First( List.Select( Text.SplitAny( Source, " ."), each Text.Length( Text.Select(_, {"-"}) )=2 ))
in
Anywhere
I hope this is helpful
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
13 | |
8 | |
8 | |
7 |
User | Count |
---|---|
17 | |
13 | |
7 | |
6 | |
6 |