Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join 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.
| User | Count |
|---|---|
| 23 | |
| 21 | |
| 20 | |
| 17 | |
| 11 |
| User | Count |
|---|---|
| 54 | |
| 53 | |
| 40 | |
| 37 | |
| 32 |