The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi everyone,
In order to receive abbreviated version of United States of America, i created the formula below by using MID function.
Do you know any idea to create a short formula, instead of using what i have done below. (Maybe more efficient one)
Regards...
Hey @kivanct ,
first, I have no better idea.
But instead using DAX I would recommend creating a mapping table (maybe based on Excel), with two columns like financials_country and country_short
Then I would use Power Query's Merge function to merge both tables and get the new column into Table4, as it is a left join cells of this new column might be empty because values are not contained in the mapping table. Finally I would create a new column (also with Power Query) that checks if the first new column is null, in this case take the original country name other wise the value from the new column 1.
Hopefully this provides an idea of how to tackle this challenge.
Regards,
Tom
User | Count |
---|---|
70 | |
67 | |
62 | |
48 | |
28 |
User | Count |
---|---|
113 | |
77 | |
65 | |
55 | |
43 |