Forum Discussion
Getting week wise count for all rows excluding the row context
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.
4 Replies
- HotChilli
Community Champion
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
- AnonymousNot applicable
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
- HotChilli
Community Champion
Post your pbix and i'll have a look.
This is what I get at my end