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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Amitsaini89
Frequent Visitor

How to Convert Serial number into SGTIN Format

Hi,

I need to Convert Serial number into SGTIN Format in power bi.

Can you please help me to achieve this.

SGTIN.PNGFor Reference please find the attached pic.

4 REPLIES 4
v-yanjiang-msft
Community Support
Community Support

Hi @Amitsaini89 ,

Haven't found the function in Power BI. From the data you displayed, if Serial Number and SGTIN Format differ only by the last digit, you just need to replace value in Power Query.

vkalyjmsft_1-1652410729869.png

vkalyjmsft_0-1652410611271.png

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

mahenkj2
Solution Sage
Solution Sage

Hello @Amitsaini89 

 

What is the logic to convert it? Would you consider that not only we try to find the ways of conversion but also logic for converting SGTIN searching over google, as I did and found some link below:

https://www.epc-rfid.info/sgtin

 

it is too hard to first find the logic ourselves, right!

Hi @amitchandak  Thanks for the reply.

But it is not like converting hexadecimal to decimal, as you seen the serial numbers in the original post Pic, we need to convert that serial numbers[NestSn] into SGTIN format just like [hexanestsn-SGTIN] only in power bi. For SGTIN Format, please find the attched pic for reference.SGTIN Format Pic.PNG

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.