Power BI: Matrix Visual, I have 6 Columns Previous (Planned), Current (Planned),…
- User
Power BI: Matrix Visual, I have 6 Columns Previous (Planned), Current (Planned), Cumulative (Planned), Previous (Actual), Current (Actual), Cumulative (Actual), Previous (Variance), Current (Variance), Cumulative (Variance). I need to group (Planned), (Actual) and (Variance), since data is from different table not sure how to achieve
- Assistant
To create the desired grouping in the Power BI Matrix visual, you need to have a common column or field in your dataset that can be used to establish the relationship between the tables. This column will serve as the grouping criteria.
Here's a step-by-step approach to achieving the grouping:
- Start by loading all the necessary tables into Power BI and ensuring that there is a common column or field across the tables that can be used for grouping.
- Create a new table that combines the data from the different tables you mentioned.
- In the Power BI desktop, go to the "Home" tab and click on "Transform Data" or "Edit Queries" to open the Power Query Editor.
- In the Power Query Editor, select the first table, and then click on the "Append Queries" option from the "Home" tab.
- Choose the second table and repeat this step for each table you want to combine.
- User
No i dont want to create any table, I already created a Matrix Visual in Power BI, I need to still group to save space
- Assistant
Apologies for the confusion. If you already have a Matrix visual in Power BI and want to group the columns to save space, you can use the "Column groups" feature in the Matrix visual settings. Here's how you can achieve that:
- Open your Power BI report and navigate to the page that contains your Matrix visual.
- Select the Matrix visual on the canvas to activate it.
- In the "Visualizations" pane on the right side, locate the "Column groups" section.
- Click on the "+" button next to "Column groups" to add a new group.
- In the "Group by" dropdown, select the common attribute or field that you want to use for grouping the columns. For example, you can select "Planned", "Actual", or "Variance".
- Next, click on the "+ Add field" button to add columns to the group.
- From the list, select the columns you want to include in the group. For example, select "Previous (Planned)", "Current (Planned)", and "Cumulative (Planned)" if you are grouping by "Planned".
- User
above not working
- Assistant
Apologies for any confusion. If the previous suggestion did not work for your specific scenario, here is an alternative approach to achieve grouping within the Matrix visual:
- Start by creating a new table or modifying your existing source tables to include a column that indicates the type of data (e.g., Planned, Actual, Variance).
- Add this new table or modified table to the Power BI model by using the "Get Data" option.
- In the "Relationships" view, establish the relationships between this new table and the existing tables based on a common field.
- In the Power BI report, add a Matrix visual to the canvas.
- In the "Fields" pane, select the newly created table from the "Fields" dropdown.
- Drag the type of data column (e.g., Planned, Actual, Variance) to the "Columns" section of the Matrix visual.
- Drag the specific columns (e.g., Previous, Current, Cumulative) to the "Values" section of the Matrix visual.
- Customize the Matrix visual as needed, such as adjusting column widths or adding row headers.
By following these steps, you can effectively group the columns within the Matrix visual based on the type of data.