BrettOlbrys1
Board Regular
- Joined
- May 1, 2018
- Messages
- 139
- Office Version
- 365
- Platform
- Windows
NOTE: All information below is sample data and does not represent any actual customer information.
I am a NEWBIE to PowerBI, so I apologize for this question. I have a data table named "DATA." In the "Data" table are the following columns and rows of data. You will see in the example that some company names repeat and in a row of data, there can be a quantity for a single product or multiple products.
DATA TABLE
I need to have a drop-down slicer that has "Product A" "Product B" and "Product C." The slicer will impact multiple visuals, but for this example, I want to create the below visual. What I want to happen is if I select Product A, B, or C, only those lines with those Products to appear in the table. But, if I select multiple products, or all products, I want each row to appear in the table showing only one of the products and the row below it will be the other product(s) for that Company and Date.
For example, in the "Data," you see two rows for "Affordable Housing." The first row only has 250 of Product B, but the second row for Affordable Housing has 100 for Product A and 100 for Product C. In the visualization of the data for Affordable Housing, you see three rows of data. The first row for Affordable Housing corresponds to the first row in the data table for Affordable Housing because there is only one product in that row, but rows 2 and 3 for Affordable Housing represent the Product A from the data table and Product C from the data table.
So anytime a row has multiple products, I want that row to duplicate for each product and only show the Qty for that product. All of the other rows with a single product would appear as a single row.
How do I accomplish this?
VISUALIZATION
I am a NEWBIE to PowerBI, so I apologize for this question. I have a data table named "DATA." In the "Data" table are the following columns and rows of data. You will see in the example that some company names repeat and in a row of data, there can be a quantity for a single product or multiple products.
DATA TABLE
Account Name | Date | Fiscal Period | Total Qty | Product A | Product B | Product C |
AARP | 1/7/24 | Q2-2024 | 1,200 | 1,200 | ||
Affordable Housing | 2/7/24 | Q2-2024 | 250 | 250 | ||
Affordable Housing | 2/8/24 | Q2-2024 | 350 | 100 | 250 | |
Comcast | 4/26/24 | Q2-2024 | 300 | 300 | ||
Deltek | 4/27/24 | Q2-2024 | 520 | 490 | 30 | |
General Electric | 6/28/24 | Q2-2024 | 700 | 700 | ||
General Electric | 6/29/24 | Q2-2024 | 300 | 300 | ||
General Electric | 6/30/24 | Q2-2024 | 550 | 100 | 350 | 100 |
HP | 7/2/24 | Q2-2024 | 600 | 400 | 200 |
I need to have a drop-down slicer that has "Product A" "Product B" and "Product C." The slicer will impact multiple visuals, but for this example, I want to create the below visual. What I want to happen is if I select Product A, B, or C, only those lines with those Products to appear in the table. But, if I select multiple products, or all products, I want each row to appear in the table showing only one of the products and the row below it will be the other product(s) for that Company and Date.
For example, in the "Data," you see two rows for "Affordable Housing." The first row only has 250 of Product B, but the second row for Affordable Housing has 100 for Product A and 100 for Product C. In the visualization of the data for Affordable Housing, you see three rows of data. The first row for Affordable Housing corresponds to the first row in the data table for Affordable Housing because there is only one product in that row, but rows 2 and 3 for Affordable Housing represent the Product A from the data table and Product C from the data table.
So anytime a row has multiple products, I want that row to duplicate for each product and only show the Qty for that product. All of the other rows with a single product would appear as a single row.
How do I accomplish this?
VISUALIZATION
Account Name | Activation Date | Product A | Product B | Product C |
AARP | 1/7/24 | 1,200 | ||
Affordable Housing | 2/7/24 | 250 | ||
Affordable Housing | 2/8/24 | 100 | ||
Affordable Housing | 2/8/24 | 250 | ||
Comcast | 4/26/24 | 300 | ||
Deltek | 4/27/24 | 490 | 30 | |
General Electric | 6/28/24 | 700 | ||
General Electric | 6/29/24 | 300 | ||
General Electric | 6/30/24 | 100 | ||
General Electric | 6/30/24 | 350 | ||
General Electric | 6/30/24 | 100 | ||
HP | 7/2/24 | 400 | ||
HP | 7/2/24 | 200 |