Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Saxon10
Post Prodigy
Post Prodigy

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:

 

Saxon10_0-1619299539522.png

 

1 ACCEPTED SOLUTION
CNENFRNL
Community Champion
Community Champion

For your reference,

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

Screenshot 2021-04-25 033305.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

2 REPLIES 2
CNENFRNL
Community Champion
Community Champion

For your reference,

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

Screenshot 2021-04-25 033305.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Hi.

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.