Forum Discussion

Saxon10's avatar
Saxon10
Icon for Post Prodigy rankPost Prodigy
5 years ago
Solved

Sumproduct multiple column (Dax Req)

Hi,

 

In data table I have 3 columns are A,B and C, based on the columns I am trying to calculate the volumn of each bins.

 

I am applying the following formaula =IF(A2*B2*C2=0,0,SUMPRODUCT(($A$2:$A$13*$B$2:$B$13*$C$2:$C$13>=$A2*$B2*$C2)+0)) in Excel. How can I apply the same logic in Power BI.

 

I am looking for new calculate column option.

 

Any idea please.

 

 

ABCRESULT
42060044011
6406004809
890110013302
1335110023501
89011003905
89011005303
67011005404
67011004406
320110044010
60040040012
8006004008
10006005007

 

 

Data and Result snapshot:

 

 

  • For your reference,

    Result = IF(DS[A]*DS[B]*DS[C], RANKX(DS, DS[A]*DS[B]*DS[C]), 0)

2 Replies

  • CNENFRNL's avatar
    CNENFRNL
    Icon for Community Champion rankCommunity Champion

    For your reference,

    Result = IF(DS[A]*DS[B]*DS[C], RANKX(DS, DS[A]*DS[B]*DS[C]), 0)

    • Saxon10's avatar
      Saxon10
      Icon for Post Prodigy rankPost Prodigy

      Hi.

      Thanks for your reply and help. Your solution working fine.