Forum Discussion
Creating visual with data on the same row
Hi Lin and thank you for taking the time to reply.
I tried your code, but got the same issue as I did myself " The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value"
See pic 1 and 2 - as you can see i only did one small change exchanging Globalweek with a uniqe site treatment ID. But both scenarios produced the same result.
Sadly i don't think i can share the full .pbix as it now contains some sensitive data. However, I have included some screenshots of all the categories that i need to un pivot in order to visualize propperly.
All of this information is captured on a single row, and is calculated with calculated columns outside of the power query editor, so it is not an option to use.
Basicly the spreadsheet covers what happens when a farmer uses a medical product and follows different aspects in the following weeks - All public data.
As a uniqe identifier i think the [Yearly site treatment ID] is fitting.
The goal here is to get somehting like this
Company - Treatment ID - Lice stage (adult female, bevegelig, fastsittende) - week 1 - week 2 - week 3 - week 4
So that i eventually can make a line graph showing the development over time. Upon writing this i actually got an idea and tried, however i'm still getting the same issue.
Any suggestions on how to get it right?
In advance thank you very much for any help!
hi, Anonymous
Could you please use virtual data to make a simple sample pbix file and expected output. That will be a better understanding of your requirement.
Best Regards,
Lin