Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
I am trying to extract the price from Excel into PowerBI but it keeps reading the data as a date. Can anyone help me with getting PowerBI to read the prices correctly? Thank you 🙂
Excel-data:
PowerBI reads it as:
But I want it to be like:
Solved! Go to Solution.
Hi @Xilitor01 ,
Using below M codes:
= Table.AddColumn(#"Promoted Headers", "Custom", each 24*Number.From([Price]))
And you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my reply as a solution!
Hey @Xilitor01 ,
in Power Query add a step where you replace ":00:00" with ".00".
Afterwards transform to a decimal number, that should do it.
Thank you for your response.
I do the following steps:
But as you can see the numbers are incorrect.
Let me know if I do something incorrectly.
Hi @Xilitor01 ,
Using below M codes:
= Table.AddColumn(#"Promoted Headers", "Custom", each 24*Number.From([Price]))
And you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my reply as a solution!
Thank you - it worked 🙂