Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Below is an example of the formula|
=IFERROR(IF(SEARCH(K$3,$B4,1)>0,K$2,0),0)
Ultimatley trying to score data. Example: If Column 'A' has value of "Address1" then subtract 10 (out of 100), if Column A has value of "ShipToAddress1" then subtract 20, etc.
@mbs2016 you can use search function
New Column = IF( SEARCH( Table[Col1], Table[Col2],, 0 ) > 0, Table[Col3], 0)
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Thank you for the prompt response. Example of the spreadsheet I'm trying to convert for as more detailed example.
B | C | D | E | F | G | H | I |
B | 100 | -25 | -15 | -10 | -10 | ||
PI Team Comments | ----- | Score | Spacing | AP_INV | AP_PO | AP_SHIP | AP_TAX |
AP_ALL CORRECT | 100 | 0 | 0 | 0 | 0 | ||
AP_SHIPPING_M | 90 | 0 | 0 | -10 | 0 | ||
AP_SHIPTO_I | 90 | 0 | 0 | -10 | 0 | ||
AP_SHIPTO_I | 90 | 0 | 0 | -10 | 0 | ||
AP_TAX_M | 90 | 0 | 0 | 0 | -10 | ||
AP_TAX_I | AP_SHIPTO_M | 80 | 0 | 0 | -10 | -10 | ||
AP_TAX_I | AP_SHIPTO_M | 80 | 0 | 0 | -10 | -10 | ||
AP_TAX_M | AP_SHIPTO_M | 80 | 0 | 0 | -10 | -10 | ||
AP_INV NUM_I | | 75 | -25 | 0 | 0 | 0 |
Formul used to score the LAST row = =IFERROR(IF(SEARCH(F$4,$B13,1)>0,F$3,0),0)
My concern is that the data was sourced from a SQL DB table and exported to Excel where the formulas were added. The column that needs to be reported on is a free form text field that can have one of twelve possible values listed and a score is assigned to each.
For example: Out off a total possible score of 100...
Possible values include "AP_INV" (If this value is present the subtract -25), "AP_SHIP" ( (If this value is present the subtract -10), etc.
Hi @mbs2016,
Could you mean below is your sample data table:
B | C | D | E | F | G | H | I |
B | 100 | -25 | -15 | -10 | -10 | ||
PI Team Comments | ----- | Score | Spacing | AP_INV | AP_PO | AP_SHIP | AP_TAX |
AP_ALL CORRECT | 100 | 0 | 0 | 0 | 0 | ||
AP_SHIPPING_M | 90 | 0 | 0 | -10 | 0 | ||
AP_SHIPTO_I | 90 | 0 | 0 | -10 | 0 | ||
AP_SHIPTO_I | 90 | 0 | 0 | -10 | 0 | ||
AP_TAX_M | 90 | 0 | 0 | 0 | -10 | ||
AP_TAX_I | AP_SHIPTO_M | 80 | 0 | 0 | -10 | -10 | ||
AP_TAX_I | AP_SHIPTO_M | 80 | 0 | 0 | -10 | -10 | ||
AP_TAX_M | AP_SHIPTO_M | 80 | 0 | 0 | -10 | -10 | ||
AP_INV NUM_I | | 75 | -25 | 0 | 0 | 0 |
Could you please post your desired result if possible?
Regards,
Daniel He
Is it possible to attach a copy of the Excel spreadsheet in this forum?
@mbs2016 youhave to post it on onedrive/google drive and share link.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
User | Count |
---|---|
116 | |
73 | |
60 | |
48 | |
48 |
User | Count |
---|---|
171 | |
122 | |
60 | |
59 | |
56 |