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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
icturion
Resolver II
Resolver II

if statement mutliply values

Hello power bi community,

 

We have price agreements for various customers. Now the intention is to multiply a value by a certain value depending on a customer.

 

Example, for customers A, B and C, multiply sell by 2.1. For customer D, multiply by 1.8. customer E multipy by 1.5. and for all other customers multiply by 2.5.

tabel voorbeeld.JPG

Thank you for your help

 

ICTURION

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @icturion ,

 

Try this New caculated column with this formula:

Total1 = 
if(
    'Table (4)'[Customer]="A"|| 'Table (4)'[Customer]="B"||'Table (4)'[Customer]="C",'Table (4)'[Numbers]*2.1,
If(
    'Table (4)'[Customer]="D",'Table (4)'[Numbers]*1.8,
If(
    'Table (4)'[Customer]="E",'Table (4)'[Numbers]*1.5,
'Table (4)'[Numbers]*2.5
)
)
)

 

My output based on your sample:

 

Capture16.PNG

 

Let me know if this is what you are looking for.

 

Thanks,

Tejaswi

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @icturion ,

 

Try this New caculated column with this formula:

Total1 = 
if(
    'Table (4)'[Customer]="A"|| 'Table (4)'[Customer]="B"||'Table (4)'[Customer]="C",'Table (4)'[Numbers]*2.1,
If(
    'Table (4)'[Customer]="D",'Table (4)'[Numbers]*1.8,
If(
    'Table (4)'[Customer]="E",'Table (4)'[Numbers]*1.5,
'Table (4)'[Numbers]*2.5
)
)
)

 

My output based on your sample:

 

Capture16.PNG

 

Let me know if this is what you are looking for.

 

Thanks,

Tejaswi

 

thank you

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors