Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi Experts
Need a formula for Power Query to Return Apples if the first for Charts in Column A start with NFRC otherwise return Ignore.
In column A I have reference numbers NFRC122ui91901 etc and so on..
Solved! Go to Solution.
You can add a custom column with this formula in the query editor.
= if Text.Start([Column1], 4) = "NFRC" then "Apples" else "Ignore"
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
@Anonymous not sure what you are looking for. Read this post to get your answer quickly.
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
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.
See sample.data set. If reference starts with NFRC then new.column Return Apples for corresponding reference.
Otherwise text ignore same column.
You can add a custom column with this formula in the query editor.
= if Text.Start([Column1], 4) = "NFRC" then "Apples" else "Ignore"
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Many thanks Pat much appreciated for the feedback.
Hi Parry2k
I'll add a sample file..
User | Count |
---|---|
102 | |
91 | |
87 | |
79 | |
71 |
User | Count |
---|---|
113 | |
105 | |
101 | |
75 | |
64 |