Forum Discussion
Dynamic Table in DAX expression
Hi Ankit,
I tried above formula and it gave me the error viz. The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.
Did you tried this dax in your test pbix ?IF so, can you please upload the sample pbix ?
Select columns will return only one column so this won't work in this situation https://docs.microsoft.com/en-us/dax/selectcolumns-function-dax
- AnkitKukreja5 years ago
Super User
Hi Anonymous
I believe calculate table or unpivot is the only option according to me.
Let's see if we can get any other solution.
Thanks,
Ankit
- Anonymous5 years agoNot applicable
Calculate table will have an issue of static data. Because it won't have dynamic data. Unpivot is also a one-time solution and the same challenge of static data. Thanks, Ankit for looking into though.
- AnkitKukreja5 years ago
Super User
Hi Anonymous
But, unpivot would be added as a step in your query editor and it would update as your data is updated everytime. Just thinking it out loud, if you might have missed that point.
Anyways, thanks and good luck.