Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi all I'm a beginner user, and I'm trying to implement the following formula, please consider that all cells are number =IF(OR(D2=4;E2=1;F2=1;G2=1;H2=1;I2);"Right";IF(OR(J2=1;K2=1;L2=1;M2=1;N2=1;O2=1;P2=1;Q2=1;R2=1;S2=1);"wrong";SUM(T2:Z2))) Can someone please help me? Thank you in advance
Hi,
Could you try and explain what you're trying to do? Instead of just 'fixing' your code we might find something that is a lot more fit for purpose.
Sure
I'm trying to define a scoring system
My input data ( table form Stock to Proxy 23) is a table 24X1M. For each row, I have to define the score in the column "final results" with 3 check
=IF(OR(B3=4;C3=1;D3=1;E3=1;F3=1;G3);"high";IF(OR(H3=1;I3=1;J3=1;K3=1;L3=1;M3=1;N3=1;O3=1;P3=1;Q3=1);"low";SUM(R3:X3)))
if one of the cells indicated in the if formula have the selected value ( 4,1,1,..) the results should be high or low base on formula otherwise the results should be the sum of the cell between Proxy_17 to Proxy_23
INPUT |
| |||||||||||||||||||||||
STOCK | Proxy _01 | Proxy _02 | Proxy _03 | Proxy _04 | Proxy _05 | Proxy _06 | Proxy _07 | Proxy _08 | Proxy _09 | Proxy _10 | Proxy _11 | Proxy _12 | Proxy _13 | Proxy _14 | Proxy _15 | Proxy _16 | Proxy _17 | Proxy _18 | Proxy _19 | Proxy _20 | Proxy _21 | Proxy _22 | Proxy _23 | Final score |
A | 1 | 1 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | high |
B | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
C | 4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | -1 | 1 | 0,5 | 0,6 | 0 | high |
where
B3 =1 ( Proxy_01); C3=1 (Proxy_02) ...
Hi @NL ,
I think you can do unpivot columns function on your proxy fields, then you can write if statement condition more simply:
Regards,
Xiaoxin Sheng
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 46 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 65 | |
| 31 | |
| 28 | |
| 24 |