Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello,
In Excel, i have added two columns in one column,the data it is in date format, and the other is in number format I need to do the same in Transform Data.
Solved! Go to Solution.
Hi,
I suggest performing this in Power Query Editor.
I tried to create a sample pibx file like below.
Please check the below picture and the attached pbix file.
M codes that I used are,
Number.From - PowerQuery M | Microsoft Learn
Date.From - PowerQuery M | Microsoft Learn
These help to convert date data type to number data type or convert number data type to date data type.
let
Source = data_source,
#"Added Custom" = Table.AddColumn(Source, "date", each Date.From ( Number.From([bookdate]) + [add] ), type date)
in
#"Added Custom"
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
Hi,
I suggest performing this in Power Query Editor.
I tried to create a sample pibx file like below.
Please check the below picture and the attached pbix file.
M codes that I used are,
Number.From - PowerQuery M | Microsoft Learn
Date.From - PowerQuery M | Microsoft Learn
These help to convert date data type to number data type or convert number data type to date data type.
let
Source = data_source,
#"Added Custom" = Table.AddColumn(Source, "date", each Date.From ( Number.From([bookdate]) + [add] ), type date)
in
#"Added Custom"
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
User | Count |
---|---|
84 | |
78 | |
70 | |
47 | |
41 |
User | Count |
---|---|
108 | |
53 | |
50 | |
40 | |
40 |