Forum Discussion
creating a data trend from two tables
- 7 years ago
Hi Anonymous,
You should unpivot w1, w2, w3 from your table 1 then remove the w and make a relationship between both tables then add the values to a line chart.
See attach PBIX file with data and example.
Regards,
MFelix
Hi MFelix
Thank you for your response. it worked just fine. I have a follow up question. I was successfully able to unpivot in the query editor and reproduce the same graph for my example. However, in my original problem, the data is creating by post processing the data from another sources.
I use various DAX functions to create the columns in the modeling section of power BI desktop. Is there a way to use DAX function to unpivot the columns dynamically? Every week the number of the columns will be added. In the example the data were shown for only 3 weeks.
Hi Anonymous,
You cannot unpivot columns with DAX.
Is your columns of the weeks variable, or are you adding information a week at a time?
Regards,
MFelix