Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
stribor45
Post Prodigy
Post Prodigy

Confused as to why some values in my column are scientific notation after UNION on multiple tables

In Power Query, I have a few tables. All tables have the same number of columns and each has the same data types. The column of interest here is column A in each of these tables, and this column's data type is duration.  In my reports, I use UNION to put all of these tables together into one virtual table. Let's call this table Table X. When i look at column A of Table X, I find that some of the values are in scientific notation. 

For example for this value "0:21:34" in my Table X I am seeing this value "1.49768518518519E-02" which is correct if you convert it but I am confused why am I seeing this? additionally, only some of these values are shown in scientific notation while others are shown properly in decimal. 

Anyone has any suggestions how to fix this?

 

1 ACCEPTED SOLUTION

I was able to create a calculated table by using UNION and SELECTCOLUMN. I picked only the columns i needed and it worked fine. No data type issues. 

After UNION wrong data 

 

Result Table =
UNION (
    SELECTCOLUMNS (
        Table1,
        "Column1", Table1[Column1],
        "Column2", Table1[Column2],
        "Column3", Table1[Column3]
    ),
    SELECTCOLUMNS (
        Table2,
        "Column1", Table2[Column1],
        "Column2", Table2[Column2],
        "Column3", Table2[Column3]
    )
)

 

View solution in original post

8 REPLIES 8
Greg_Deckler
Community Champion
Community Champion

@stribor45 Not sure you need to worry about it, you should be able to control the formatting once they are loaded and visualized.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

I am having some trouble calculating the average on this column. Column A should be type decimal but for some reason is text. When I try to change the type to decimal using column tools I get this error 

 

stribor45_0-1723126671028.png

 

@stribor45 You might have to try converting to a duration and then to decimal. It's tough to say without sample data and only bits and pieces of information.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

I know but in power query column A is of type duration for each table. there is no type "duration" in DAX

@stribor45 Correct, durations become decimals when imported into a semantic model. Same thing with dates and times technically, they are all just decimal numbers.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Yes I was aware of that. what do you recommend I do in order to fix this error?

@stribor45 It's difficult to know specifically but it appears as if somewhere in the process the values are being converted to Text. So, I would convert them to Duration as a final step and then they should import as decimal numbers in the semantic model. I tested your format and it converts from Text to Duration just fine.

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMtQzNLAyNLIyNFaKjQUA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type duration}})
in
    #"Changed Type"


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

I was able to create a calculated table by using UNION and SELECTCOLUMN. I picked only the columns i needed and it worked fine. No data type issues. 

After UNION wrong data 

 

Result Table =
UNION (
    SELECTCOLUMNS (
        Table1,
        "Column1", Table1[Column1],
        "Column2", Table1[Column2],
        "Column3", Table1[Column3]
    ),
    SELECTCOLUMNS (
        Table2,
        "Column1", Table2[Column1],
        "Column2", Table2[Column2],
        "Column3", Table2[Column3]
    )
)

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors