Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I've never worked with Power BI before but i assumed the formulas were similar to Excel but it isn't? I don't know how to create a formula that uses an if statement to calculate a value. What i have right now is:
IF [Discount] > 0 then value.Multiply([UnitPrice], [Discount]) else 0
but it says the value.multiply is wrong so i don't know if there should be commas or something to separate it since the formula requirements don't pop up as i type. After calculating whether the discount price should be multiplied, i wanted to subtract that price from the value.multiply([UnitPrice], [Quantity]) to get total revenue, but i DON'T know how to even combine these formulas into one long formula like excel does. do i start a new column? a new equal sign underneath?
Solved! Go to Solution.
@Jkiddin
You have typed "IF" with upper case, Power Query is case sensitive, it should be all lower case here. type it as follows:
if [Discount] > 0 then ( [UnitPrice] * [Discount] ) else 0
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
it still didn't work 😞
@Jkiddin
You have typed "IF" with upper case, Power Query is case sensitive, it should be all lower case here. type it as follows:
if [Discount] > 0 then ( [UnitPrice] * [Discount] ) else 0
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
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.