This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
Hi all,
I have a question about running a market basked analysis in R on a filtered dataset.
My dataset contains Invoice Number, Position, Article and SoldToAccount.
I would like to run the R code for each SoldToAccountNr indivdually and add it in a new column to the result to later compare them.
So the end result should look like this were I can see the customer number.
Do you think this is possible?
File: https://filebin.net/hqdd2woqyifqytl9
Thank you very much in advance. 🙂
Hi @LillyLegenda ,
This is a link to related content, I hope it will help you:
https://community.powerbi.com/t5/Desktop/Run-R-Script-to-create-new-column/m-p/784924
https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-r-in-query-editor
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 24 | |
| 24 | |
| 21 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 56 | |
| 53 | |
| 49 | |
| 26 | |
| 26 |