Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I want to pivot the column which changes data dynamically and use the same in power BI desktop , by using Direct query mode so as to refresh data immediatly.
SQL database table
Question Answer
ABC yes
DEF No
GHI Taken
Final result
ABC DEF GHI
yes No Token
If the values change dynamically as following-
Question Answer
ABC yes
DEF Yes
GHI Taken
JKL Registered
Final result should be-
ABC DEF GHI JKL
yes Yes Token Registered
As pivot doesn't support in direct query mode in power BI desktop, please suggest some way to achieve the row values as columns and use in power BI desktop in direct mode.
Also the requirement is to use 'Personalize visual' , so that user can select any question on any visual.
Hey @Anonymous ,
as you said, pivot is not supported in DQ.
What you can do is to use the Matrix visual and take the Question in the columns and Answer in values. Like this you will get a matrix like that:
The alternative is to ask if you really need DQ as it has a lot of disadvantages.
Thanks for the reply @selimovd . Yes, matrix visual can be used when the visual is stable. But in my case, requirement is to use 'personalize visual' option. So it will be confusing for user to select different questions when required. (updating the question with the same)
@Anonymous , pivot is not supported in direct query
Create a measure
M1= max(Table[Answer])
In matrix visual use Question on Column, Nothing on row, M1 as Value,
If need switch on- Show on row.
Thanks for the reply @amitchandak . Yes, matrix visual can be used when the visual is stable. But in my case, requirement is to use 'personalize visual' option. So it will be confusing for user to select different questions when required. (updating the question with the same). Also,this measure did not make much difference in the matrix.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
65 | |
63 | |
52 | |
37 | |
36 |
User | Count |
---|---|
82 | |
66 | |
61 | |
46 | |
45 |