Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
I want to create a new coulmn that shows freight costs by using two precentages (10% and 5%) based on cost per unit.
This new column will be based on three coulmns:
Category (1,2,3)
Document type (A,B,C)
Cost per unit (Values)
I want that all the rows in this column should show only Document type "A".
After that I need the new column to show that Cost per unit is multiplied by 10%(0,1) if its Category 1 and 2. If its Category 3 I want Cost per unit to be multiplied by 5%(0,05).
Something like this:
| Category | Document type | Cost per unit | New Column (Freight) |
| 1 | A | 10 | 1 |
| 3 | A | 100 | 5 |
| 3 | B | 10 | - |
| 2 | A | 100 | 10 |
| 1 | C | 10 | - |
| 1 | B | 10 | - |
| 2 | A | 10 | 1 |
| 3 | A | 1000 | 50 |
| 3 | C | 10 | - |
Cant figure out how to write this formula, so I appreciate any help!
Solved! Go to Solution.
Hi @Anonymous
Create this calculated column:
New column =
IF (
Table1[Document Type] = "A",
IF (
Table1[Category] IN { 1, 2 },
0.1 * Table1[Cost per unit],
IF ( Table1[Category] = 3, 0.05 * Table1[Cost per unit] )
)
)
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi @Anonymous
Create this calculated column:
New column =
IF (
Table1[Document Type] = "A",
IF (
Table1[Category] IN { 1, 2 },
0.1 * Table1[Cost per unit],
IF ( Table1[Category] = 3, 0.05 * Table1[Cost per unit] )
)
)
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 13 | |
| 9 | |
| 8 | |
| 8 | |
| 7 |