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.
Good Day,
I'm trying to create an expression to display a Zip Code as #####-#### if it is 9 digits or as ##### if it is 5 digits.
Can anyone point me in the right direction?
Solved! Go to Solution.
Figured it out:
=IIf(Len(Fields!Zip.Value) = 5, Fields!Zip.Value, Left(Fields!Zip.Value, 5) &"-" & Right(Fields!Zip.Value, 4))
Figured it out:
=IIf(Len(Fields!Zip.Value) = 5, Fields!Zip.Value, Left(Fields!Zip.Value, 5) &"-" & Right(Fields!Zip.Value, 4))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
61 | |
20 | |
20 | |
18 | |
9 |