Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello
I have a flat wide table that I'm trying to summarize differently across dates in columns (max) but by sum over the rows.
This is to produce a timeline showing how many components are installed at any given time.
The source looks like this:
year | month | EOM | Vehicle | Component | Install date | Is Installed |
2020 | 1 | 31/01/2020 | Mazda | Radio | 3/03/2020 | 0 |
2020 | 2 | 29/02/2020 | Mazda | Radio | 3/03/2020 | 0 |
2020 | 3 | 31/03/2020 | Mazda | Radio | 3/03/2020 | 1 |
2020 | 4 | 30/04/2020 | Mazda | Radio | 3/03/2020 | 1 |
2020 | 5 | 31/05/2020 | Mazda | Radio | 3/03/2020 | 1 |
2020 | 6 | 30/06/2020 | Mazda | Radio | 3/03/2020 | 1 |
2020 | 1 | 31/01/2020 | Mazda | Windscreen | 7/06/2020 | 0 |
2020 | 2 | 29/02/2020 | Mazda | Windscreen | 7/06/2020 | 0 |
2020 | 3 | 31/03/2020 | Mazda | Windscreen | 7/06/2020 | 0 |
2020 | 4 | 30/04/2020 | Mazda | Windscreen | 7/06/2020 | 0 |
2020 | 5 | 31/05/2020 | Mazda | Windscreen | 7/06/2020 | 0 |
2020 | 6 | 30/06/2020 | Mazda | Windscreen | 7/06/2020 | 1 |
2020 | 1 | 31/01/2020 | Ford | Radio | 1/01/2020 | 1 |
2020 | 2 | 29/02/2020 | Ford | Radio | 1/01/2020 | 1 |
2020 | 3 | 31/03/2020 | Ford | Radio | 1/01/2020 | 1 |
2020 | 4 | 30/04/2020 | Ford | Radio | 1/01/2020 | 1 |
2020 | 5 | 31/05/2020 | Ford | Radio | 1/01/2020 | 1 |
2020 | 6 | 30/06/2020 | Ford | Radio | 1/01/2020 | 1 |
2020 | 1 | 31/01/2020 | Ford | Windscreen | 30/04/2020 | 0 |
2020 | 2 | 29/02/2020 | Ford | Windscreen | 30/04/2020 | 0 |
2020 | 3 | 31/03/2020 | Ford | Windscreen | 30/04/2020 | 0 |
2020 | 4 | 30/04/2020 | Ford | Windscreen | 30/04/2020 | 1 |
2020 | 5 | 31/05/2020 | Ford | Windscreen | 30/04/2020 | 1 |
2020 | 6 | 30/06/2020 | Ford | Windscreen | 30/04/2020 | 1 |
What I am trying to see is:
2020 | |||||||
Vehicle | Component | 1 | 2 | 3 | 4 | 5 | 6 |
Mazda | Radio | 0 | 0 | 1 | 1 | 1 | 1 |
Mazda | Windscreen | 0 | 0 | 0 | 0 | 0 | 1 |
Ford | Radio | 1 | 1 | 1 | 1 | 1 | 1 |
Ford | Windscreen | 0 | 0 | 0 | 1 | 1 | 1 |
I have used a measure to take the max of the 'Is Installed' so that when the columns are drilled up to "Year" it still shows 1 but how do I show the sum of the "is installed" when I drill up to Vehicle?
2020 | ||||||
Vehicle | 1 | 2 | 3 | 4 | 5 | 6 |
Mazda | 0 | 0 | 1 | 1 | 1 | 2 |
Ford | 1 | 1 | 1 | 2 | 2 | 2 |
Much Thanks
K
Solved! Go to Solution.
Hi @Anonymous ,
If you want to drill up to Vehicle, you need to convert Drill on Columns to Drill on Rows.
This is my PBIX file.
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
If you want to drill up to Vehicle, you need to convert Drill on Columns to Drill on Rows.
This is my PBIX file.
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
94 | |
83 | |
67 | |
59 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |