Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello! I am very new to PowerBI. I apologize if I can't properly search nor phrase my question correctly.
So currently, I have a table that looks like this:
Case Number | Reject Reason 1 | Reject Reason 2 | Reject Reason 3 | Reject Reason 4 | Reject Reason 5 | Reject Reason 6 | Reject Reason 7 | Reject Reason 8 | Reject Reason 9 |
Case1 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 1 |
Case2 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 1 |
Case3 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 |
So we track the data by which reject reason is applicable per case. And it's only presented by 0 and 1.
Now, I wanted to make another table that summarizes the number of reject reasons like this:
Reject Reason | Total Number |
Reject Reason 1 | x |
Reject Reason 2 | x |
Reject Reason 3 | x |
Reject Reason 4 | x |
Reject Reason 5 | x |
Reject Reason 6 | x |
Reject Reason 7 | x |
Reject Reason 8 | x |
I was wondering if there is any function or formula that would automatically lookup the text from the 1st column (the reject reason) to the 1st table and then summarize or calculate the number so that it would look like this:
Reject Reason | Total Number |
Reject Reason 1 | 3 |
Reject Reason 2 | 2 |
Reject Reason 3 | 2 |
Reject Reason 4 | 2 |
Reject Reason 5 | 1 |
Reject Reason 6 | 2 |
Reject Reason 7 | 0 |
Reject Reason 8 | 2 |
Reject Reason 9 | 2 |
Thank you in advance!
Solved! Go to Solution.
The process you are looking to do is "Unpivot". This is easiest done using Power Query.
Click on Transform Data, then select Transform.
Select your Reason Code Columns, then select Unpivot - Selected Columns.
Then you can create all of your Visuals using this table.
Hope you can get this to work for you.
Regards,
The process you are looking to do is "Unpivot". This is easiest done using Power Query.
Click on Transform Data, then select Transform.
Select your Reason Code Columns, then select Unpivot - Selected Columns.
Then you can create all of your Visuals using this table.
Hope you can get this to work for you.
Regards,
Thank you! This is exactly what I was looking for!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
75 | |
63 | |
51 | |
48 |
User | Count |
---|---|
211 | |
86 | |
64 | |
59 | |
56 |