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.
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.
A | B | C | RESULT |
420 | 600 | 440 | 11 |
640 | 600 | 480 | 9 |
890 | 1100 | 1330 | 2 |
1335 | 1100 | 2350 | 1 |
890 | 1100 | 390 | 5 |
890 | 1100 | 530 | 3 |
670 | 1100 | 540 | 4 |
670 | 1100 | 440 | 6 |
320 | 1100 | 440 | 10 |
600 | 400 | 400 | 12 |
800 | 600 | 400 | 8 |
1000 | 600 | 500 | 7 |
Data and Result snapshot:
Solved! Go to Solution.
For your reference,
Result = IF(DS[A]*DS[B]*DS[C], RANKX(DS, DS[A]*DS[B]*DS[C]), 0)
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! |
For your reference,
Result = IF(DS[A]*DS[B]*DS[C], RANKX(DS, DS[A]*DS[B]*DS[C]), 0)
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |