March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |