Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Dear Community,
I need to get the count of the error per week in matrix for each row without splitting the count per row wise. Have given the data and the required output. Please help me to solve this issue.
Please see the image below
have given the column calculation highlighted in yellow for reference. Need the matrix to be the percentage of the week's total
Data
number | System | Error | LMDate | LMDateKey | Week |
3078 | S5 | Yes | 2020-02-03 | 20200203 | 6 |
3333 | S5 | Yes | 2020-01-29 | 20200129 | 5 |
2142 | S9 | Yes | 2020-02-06 | 20200206 | 6 |
4391 | S6 | Yes | 2020-02-04 | 20200204 | 6 |
75 | S3 | Yes | 2020-01-29 | 20200129 | 5 |
497 | S3 | Yes | 2020-01-29 | 20200129 | 5 |
4579 | S5 | Yes | 2020-01-29 | 20200129 | 5 |
839 | S7 | Yes | 2020-01-31 | 20200131 | 5 |
2682 | S7 | Yes | 2020-01-31 | 20200131 | 5 |
4598 | S7 | Yes | 2020-01-27 | 20200127 | 5 |
1367 | S1 | Yes | 2020-02-07 | 20200207 | 6 |
1993 | S1 | Yes | 2020-02-07 | 20200207 | 6 |
2296 | S7 | Yes | 2020-02-07 | 20200207 | 6 |
3506 | S7 | Yes | 2020-02-07 | 20200207 | 6 |
3159 | S7 | Yes | 2020-02-07 | 20200207 | 6 |
4743 | S4 | Yes | 2020-02-06 | 20200206 | 6 |
2310 | S8 | Yes | 2020-01-29 | 20200129 | 5 |
3296 | S7 | Yes | 2020-01-29 | 20200129 | 5 |
140 | S7 | Yes | 2020-01-30 | 20200130 | 5 |
356 | S7 | Yes | 2020-01-29 | 20200129 | 5 |
3533 | S6 | Yes | 2020-01-28 | 20200128 | 5 |
543 | Yes | 2020-01-27 | 20200127 | 5 | |
404 | S1 | Yes | 2020-02-05 | 20200205 | 6 |
3953 | S7 | Yes | 2020-01-30 | 20200130 | 5 |
622 | S7 | Yes | 2020-01-30 | 20200130 | 5 |
4009 | S6 | Yes | 2020-01-30 | 20200130 | 5 |
438 | S6 | Yes | 2020-01-29 | 20200129 | 5 |
464 | S2 | Yes | 2020-01-29 | 20200129 | 5 |
3702 | S6 | Yes | 2020-01-27 | 20200127 | 5 |
4682 | S5 | Yes | 2020-02-06 | 20200206 | 6 |
2189 | S7 | Yes | 2020-02-06 | 20200206 | 6 |
3777 | S7 | Yes | 2020-01-31 | 20200131 | 5 |
2894 | S7 | Yes | 2020-02-07 | 20200207 | 6 |
1742 | S6 | Yes | 2020-01-28 | 20200128 | 5 |
3235 | S7 | Yes | 2020-01-28 | 20200128 | 5 |
4750 | S7 | Yes | 2020-01-28 | 20200128 | 5 |
Thanks in advance.
Create 3 measures:
Error Count = COUNT(TableDa[Error])
WeekErrors = CALCULATE([Error Count], ALLEXCEPT(TableDa, TableDa[Week]))
ErrorCount% = DIVIDE([Error Count], [WeekErrors])
In a matrix,
put System in Rows,
Week in Columns,
[Error Count] and [ErrorCount%] in Values
Hi @HotChilli ,
Thanks for your immediate response.
I tried the solution you gave and im still getting the total for the week getting split as the system in the rows. Please see the image below.
I need the 9 Week Errors as the total of week that is 23 for 5 & 13 for 6 in the column so i could get the respective error %.
Please suggest. Thanks in Advance
Post your pbix and i'll have a look.
This is what I get at my end
Hi @HotChilli ,
I am having the Week from the a date table and joined the same via the Datekey in the source table. does this solution will work only if the week is from the same table?.
Please let me know.
Thanks.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
71 | |
57 | |
38 | |
36 |
User | Count |
---|---|
82 | |
67 | |
61 | |
46 | |
45 |