The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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"
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"