Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

DAX Help

Hi all,

I have below condition

IIf([Q_12_MO]=0 And [Q_THRU_TON]=0,"Not Shipping",
IIf([PCTONPGM]="No Assemblies Shipped","Outside Tolerance",
IIf([PCTONPGM]<90 Or [PCTONPGM]>110,"Outside Tolerance","Acceptable")))


I need to get this in pbi

Q_12_MO and Q_THRU_TON is in decimal Number format

I created below to get Not Shipping condition

Not Shipping Cond = IF('BR '[Q_12_MO]=0 && 'BR 003'[Q_THRU_TON]=0, 1, BLANK())
Not Shipping = If ([Not Shipping Cond]="1", "Not Shipping", BLANK())

I tried my needed condition also in pbi, but it thrown some error
Result_ = IF(
  [Not Shipping Cond]= "1",
  "Not Shipping",
  IF(
    [PCT ON PGM] == "No Assemblies Shipped",
    "Outside Tolerance",
    IF(
      [PCT ON PGM] < 90 || [PCT ON PGM] > 110,
      "Outside Tolerance",
      "Acceptable"
    )
  )
)

PCT ON PGM Is in text format



please help

2 Replies