Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.