Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Need help with creating a column with multiple criteria

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:

CategoryDocument typeCost per unitNew Column (Freight)
1A101
3A1005
3B10-
2A10010
1C10-
1B10-
2A101
3A100050
3C10-


Cant figure out how to write this formula, so I appreciate any help!

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

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 

SU18_powerbi_badge

View solution in original post

1 REPLY 1
AlB
Community Champion
Community Champion

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 

SU18_powerbi_badge

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.