Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi,
Is it possible to UNPIVOT the data by using the Direct query in Power BI Desktop?
Thank you,
Solved! Go to Solution.
Here is a post suggesting a work around using UNION()
https://stackoverflow.com/questions/50213905/is-it-possible-to-unpivot-in-power-bi-using-dax
Help when you know. Ask when you don't!
@V-lianl-msft , I can see data on the Query editior but when I click on the close and apply then it is saying this Query contains transformation that can't be used for Direct Query.
I'm not sure whether you applied action, please see below.
Thanks
Hi @Anonymous ,
I found this article on internet
https://www.newtechdojo.com/unpivot-columns-in-power-bi/
I have used this concept in my case and it worked.
Please have a look.
best regards,
Gaurav Raj Singh
please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Thanks for your response, that article is about the unpivot the data with import mode but I need with the Direct mode connection.
Is the "Unpivot Column" button grayed out ? If so you will have to do the unpivot in the datasource.
Help when you know. Ask when you don't!
@kentyler , Thanks for your response, The Unpivot option is not grayed out but it is not letting me apply changes on the Query editor window. I guess, it is not possible at the moment and I may need to Unpivot on the source side.
Here is a post suggesting a work around using UNION()
https://stackoverflow.com/questions/50213905/is-it-possible-to-unpivot-in-power-bi-using-dax
Help when you know. Ask when you don't!
hi
can you post your Advanced editor script because ii try thie solution but i dont understand because i get some error
thx
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 84 | |
| 48 | |
| 36 | |
| 31 | |
| 29 |