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
Hello,
I have a formula (see below) in excel that needs to be converted for Power BI.
How would I write this formula in Power BI?
=IF(A2="","",IF(SUMPRODUCT(($D$2:$D2=D2)*($C$2:$C2=C2))>1,0,1))
Column D = CUST_NO
Column C = CUSTOMER
Column A = CUST_CLASSIFICATION
Solved! Go to Solution.
CalculatedColumn=IF(ISBLANK(Table[CUST_CLASSIFICATION]),BLANK(),IF(COUNTROWS(FILTER(Table,Table[CUST_NO]=EARLIER(Table[CUST_NO])&&Table[CUSTOMER]=EARLIER(Table[CUSTOMER]))),1,0))
CalculatedColumn=IF(ISBLANK(Table[CUST_CLASSIFICATION]),BLANK(),IF(COUNTROWS(FILTER(Table,Table[CUST_NO]=EARLIER(Table[CUST_NO])&&Table[CUSTOMER]=EARLIER(Table[CUSTOMER]))),1,0))
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |