Forum Discussion
nicktayl
Helper I
9 years agoToo many arguments were passed to the AND function. The maximum argument count for the function is 2
In Access and Excel you can write "AND" or "OR" functions with unlimited conditions. Is this not the case in Power BI DAX "AND" functions? If this is a limitation in DAX, does anyone have a...
mmace1
Impactful Individual
9 years agoCan you write out an && example? That looks like a better way, but I'm not quite following.
Thanks!
nicktayl
Helper I
9 years agoOwenAuger Beautiful, thanks!
DAX:
Purchase Only Flag = If(tbl_kpi[Program]="Purchase" && tbl_kpi[Purchase Price]>0 && (tbl_kpi[Rehab Budget]=0 || isblank(tbl_kpi[Rehab Budget])),"Purchase Only",blank())
Access:
Purchase Only Flag: IIf([kpi].[Program]="Purchase" And [kpi].[Purchase Price]>0 And ([kpi].[Rehab Budget]=0 Or [kpi].[Rehab Budget] Is Null),"Purchase Only",Null)