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! Get ahead of the game and start preparing now! Learn more
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
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |