Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 217217

Extract data from JSON field

$
0
0

I'm using Power BI desktop to connect to a MySQL database.

One of the fields contains data with the following structure:

 

a:1:{s:3:"IVA";O:8:"stdClass":3:{s:11:"tax_namekey";s:3:"IVA";s:8:"tax_rate";s:7:"0.23000";s:10:"tax_amount";d:25.07000000000000028421709430404007434844970703125;}}

 

I need to transform the data in a way that allows the extraction of the value of the tax amount. That is, I need to transform this column to: 25.07.

 

How can I do this? I tried splitting the column by semicolon, but since not all the columns have the same number of semicolons it didn't work.

 

Thanks in advance!


Viewing all articles
Browse latest Browse all 217217

Trending Articles