Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hey everyone!
I have a challenge here in order to organize some discount code used in our orders.
There is a specific indication code, that when it used in a order, it actually shows the field like this:
ALE32H-99999
ALE32H is the actully indication code from the person that had gave the code to the person that ordered.
And 99999 is the order ID from this order.
What I need is to reduce this field to show only the indication code, so I can create a count of how many people this indication code has brought.
Since this date comes from MySQL, I thought it will be easy to transform directly in the Power Query.
What you guys think?
Does anyone know how to crack this?
FYI: the table shows like this:
LINE > Order ID, Discount Code
Thank you very much in advance
Solved! Go to Solution.
You can extract the text before the hyphen ribbon tools:
(Use "-" as your delimiter.)
You can extract the text before the hyphen ribbon tools:
(Use "-" as your delimiter.)
I'm feeling a bit newbie hahahaaha Thank you very much!!!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
79 | |
58 | |
35 | |
35 |
User | Count |
---|---|
99 | |
59 | |
56 | |
46 | |
40 |