Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
I want to add a matrix to my report. I need it to look like the image below.
I have 4 tables:
How do I arrange the data in the Rows, Columns, and Values fields to get the result in the image?
@Anonymous
From your desciption, you should:
1) unpivot both "Planned Vacation" and "Actual days taken" tables to have the months and Year in a single column each.
2) Create lookup tables with unique values for:
a) months (include an index column for sorting purposes): join with a one-to.many relationship to both your "Planned Vacation" and "Actual days taken tables"
b) years: join with a one-to.many relationship to both your "Planned Vacation" and "Actual days taken tables"
c) Employee ID: join with a one-to.many relationship to all your tables
3) create measures to calculate the number of [planned days], [number of days taken] and [vacation days balance]
4) create a matrix visual using:
a) Employee Id field from your lookup table as rows
b) the month and year fields from your lookup tables as columns (or you can use the year field as a filter in the filter pane if you want to restrict the data to a specific year.)
c) include your measures as values
5) go into the formatting pane for the matrix and under "Values" select "show on rows".
Does that work?
If not please provide sample data in data format for all tables to replicate your model.
Proud to be a Super User!
Paul on Linkedin.
Thank you for your reply. I got it to work except for the circled column.
Here's how I arranged everything:
Rows: EmployeeInfo
Columns: Months (Single column)
Values: Planned, Actual
I have a table named Balance with the two columns: EmployeeID and LeaveBalance. I connected it to the Employee table this way:
EmployeeID in Employee table (1)-->(*) EmployeeID in Balance table
How do I get the Leave Balance to display as I want it in the image above?
Use power bi Matrix, with stepped layout off. Drill till the last level
https://www.burningsuit.co.uk/blog/2019/04/7-secrets-of-the-matrix-visual/
https://data-flair.training/blogs/power-bi-matrix-visual/
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 37 | |
| 34 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 72 | |
| 72 | |
| 38 | |
| 35 | |
| 26 |