Forum Discussion

Peter32's avatar
Peter32
Frequent Visitor
3 years ago
Solved

Zip Codes - select

Hello,   I have a table with the zip code column. This column contains postal codes with 4 digits, but also with more than 4 digits. The latter are then from abroad. Unfortunately I can't get a dat...
  • parry2k's avatar
    3 years ago

    Peter32 you can add a column in PQ using following code:

     

    if Text.Length([ZipColumn])>4 then null else [ZipColumn]

     

    👉 Learn Power BI and Fabric - subscribe to our YT channel - @PowerBIHowTo

    If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤️