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.
Hi
I have a small issue that hope someone here can help me with.
I'm working with a simple excel table that contains sold items and how much discount we have given on each specific produkt.
The items are sold both by unit (1 and 1), but also in boxes/packages (can contain 20 units etc). I have a column that state if it is unit or box (St or Frp). What i would like to do is to make a column that only contain the unit value.
So if the product is sold as a unit (st), then i want to keep the value on how many we sold. But if the sold product is a box, then i want to multiple the amount of boxes with the value from another column that contain the amount of units/box.
Hope you can help me out 🙂
Br Marcus
This is best done in Power Query. In Power BI Desktop, go to "Transform Data" and add a custom column as below...
This will generate a new column "Unit Value" with the calculation you need.
Hope this helps
Stuart
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 |
---|---|
58 | |
35 | |
27 | |
25 | |
25 |
User | Count |
---|---|
62 | |
52 | |
30 | |
25 | |
23 |