Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I have tried and failed to use Pivot Columns in Power Query for this. Basically I need to Pivot the Category with the Outcome (not aggregated) Is there a DAX formula I can use for this. Below is as the data is in Power BI.
and below is how I want it to appear. Please note there are 100s of Store numbers./thousands of rows.
Solved! Go to Solution.
For your reference.
Step 0: I use these data.
DATA:
Date Store No Category Outcome Name Visit Type Job Title Store Size
02/10/2023 4567 1a Good Mickey Mouse Visit Manager Small
02/10/2023 4567 1b Satisfactory Mickey Mouse Visit Manager Small
02/10/2023 4567 1c Improvement Necessary Mickey Mouse Visit Manager Small
02/10/2023 4567 1d Not Checked Mickey Mouse Visit Manager Small
02/10/2023 4567 2 Good Mickey Mouse Visit Manager Small
02/10/2023 4567 3 Good Mickey Mouse Visit Manager Small
02/10/2023 4567 4 Good Mickey Mouse Visit Manager Small
08/10/2023 2345 1a Satisfactory Donald Duck Desk visit Senior Manager Large
08/10/2023 2345 1b Improvement Necessary Donald Duck Desk visit Senior Manager Large
08/10/2023 2345 1c Not Checked Donald Duck Desk visit Senior Manager Large
08/10/2023 2345 1d Good Donald Duck Desk visit Senior Manager Large
08/10/2023 2345 2 Good Donald Duck Desk visit Senior Manager Large
08/10/2023 2345 3 Satisfactory Donald Duck Desk visit Senior Manager Large
08/10/2023 2345 4 Improvement Necessary Donald Duck Desk visit Senior Manager Large
Step 1: I add 7 conditional columns.
Step 2: I fill down these 7 columns.
Step 3: I filter 'Category' column by '4'.
Step 4: I remove 'Category' column and 'Outcome' column.
Hi @lennox25 ,
If you simply want the grid/table in your screen to be this way, Why not simply use Matrix visualization and put "Category" field in columns?
If you need the data in this structure itself, you can unpivot from Power Query Editor.
Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!! Proud To Be a Super User !!! |
For your reference.
Step 0: I use these data.
DATA:
Date Store No Category Outcome Name Visit Type Job Title Store Size
02/10/2023 4567 1a Good Mickey Mouse Visit Manager Small
02/10/2023 4567 1b Satisfactory Mickey Mouse Visit Manager Small
02/10/2023 4567 1c Improvement Necessary Mickey Mouse Visit Manager Small
02/10/2023 4567 1d Not Checked Mickey Mouse Visit Manager Small
02/10/2023 4567 2 Good Mickey Mouse Visit Manager Small
02/10/2023 4567 3 Good Mickey Mouse Visit Manager Small
02/10/2023 4567 4 Good Mickey Mouse Visit Manager Small
08/10/2023 2345 1a Satisfactory Donald Duck Desk visit Senior Manager Large
08/10/2023 2345 1b Improvement Necessary Donald Duck Desk visit Senior Manager Large
08/10/2023 2345 1c Not Checked Donald Duck Desk visit Senior Manager Large
08/10/2023 2345 1d Good Donald Duck Desk visit Senior Manager Large
08/10/2023 2345 2 Good Donald Duck Desk visit Senior Manager Large
08/10/2023 2345 3 Satisfactory Donald Duck Desk visit Senior Manager Large
08/10/2023 2345 4 Improvement Necessary Donald Duck Desk visit Senior Manager Large
Step 1: I add 7 conditional columns.
Step 2: I fill down these 7 columns.
Step 3: I filter 'Category' column by '4'.
Step 4: I remove 'Category' column and 'Outcome' column.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 32 | |
| 27 | |
| 26 |