Forum Discussion
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.
For Reference please find the attached pic.
4 Replies
- amitchandakSuper User
Amitsaini89 , what is the logic? Is it like hexadecimal to decimal
https://xxlbi.com/blog/converting-hexadecimal-to-decimal-numbers-in-power-query/
vice versa
https://blog.crossjoin.co.uk/2018/09/23/converting-decimal-numbers-to-hexadecimal-in-power-query-m/
- Amitsaini89Frequent Visitor
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.
- mahenkj2Solution 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!
- v-yanjiang-msftCommunity 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.
Best Regards,
Community Support Team _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.