Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Automatically multiplying data based on individual row values

Hi All,   I'm pretty new to Power Bi and still getting to grips with DAX expressions and the like, hoping for some guidance on something that's got me pulling my hair out ATM!   Here is a s...
  • Ashish_Mathur's avatar
    6 years ago

    Hi,

    This is the kind of calculation you should be doing in a calculated column.  Assuming you have a column for Product, try this calculated column formula

    =IF(Data[SKU]="2163986-5",IF(Data[Product]="Sour Apple",Data[Qty]*5,Data[Qty]),Data[Qty])

    Hope this helps.