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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
marzwrob
Helper II
Helper II

Varied Multiplier based on cell text

I have a table like follows. I need to do something like the following:

  • if country = GB then: SUM(grossTotal)*1.16
  • if country = CH then: SUM(grossTotal)*0.0023

There are several conditions like such.

How can I best do this? e.g. is it better to create a lookup table and link, or can I have some IF statement which would cover this?

marzwrob_0-1695205711265.png

 

1 ACCEPTED SOLUTION
ChiragGarg2512
Super User
Super User

Instead of IF, use of SWITCH statement will be better in this case. But the use of either switch or if will result in writing a lot of statements.   
The best would be to create a lookup table for country and the currency multiplier for that country.

View solution in original post

1 REPLY 1
ChiragGarg2512
Super User
Super User

Instead of IF, use of SWITCH statement will be better in this case. But the use of either switch or if will result in writing a lot of statements.   
The best would be to create a lookup table for country and the currency multiplier for that country.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.