Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Solved! Go to Solution.
@Anonymous - Try:
EP1 =
IF(
AND(
SUM('Data'[Number of Units])=1,
MAX('Data'[Type of Find])="Packaging"
)
,1,0
)
or
EP1 =
IF(
SUM('Data'[Number of Units])=1 &&
MAX('Data'[Type of Find])="Packaging"
,1,0
)
@Anonymous Seems like this should be:
EP1 =
IF(
AND(
SUM('Data'[Number of Units]=1),
MAX('Data'[Type of Find])="Packaging"
)
,1,0
)
or
EP1 =
IF(
SUM('Data'[Number of Units]=1) &&
MAX('Data'[Type of Find]="Packaging")
,1,0
)
Thanks for reply, unfortunatley the error: The SUM function only accepts a column reference as an argument. has come up with both options.
'Data'[Number of Units] is a numeric field,
'Data'[Type of Find]="Packaging" is a text field.
@Anonymous - Try:
EP1 =
IF(
AND(
SUM('Data'[Number of Units])=1,
MAX('Data'[Type of Find])="Packaging"
)
,1,0
)
or
EP1 =
IF(
SUM('Data'[Number of Units])=1 &&
MAX('Data'[Type of Find])="Packaging"
,1,0
)
| User | Count |
|---|---|
| 51 | |
| 38 | |
| 33 | |
| 22 | |
| 19 |
| User | Count |
|---|---|
| 136 | |
| 101 | |
| 58 | |
| 36 | |
| 35 |