Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Here is the Sample i have. I have data by Quarters wanted to calculate (Current Quat Count + Previous Quat Count) / 2 which is working Good. My challenge is i want to display the sum of all the values for each category. Below is the Formula i am using
Current Quat Count =COUNT(Sheet1[Index])
Previous = IF(HASONEVALUE(Sheet1[DateCustom]),
overallCounts = ([Counts]+[Previous]) / (2 - ISBLANK([Counts]) - ISBLANK([Previous]))
Here is what i want :
1. Sum of counts from the above values by Category, It should sum all the values displayed in Quarters . For Column B ,C
2. Total : Sum of Values by Quarter * Weight = Sum of Quarters in Each category = Sum = For column d
below is the sample data
| Index | Category | DateCustom | Rating | WEIGHT |
| 1 | Food | 1/1/2019 | Good | 0.4 |
| 2 | Food | 1/1/2019 | Good | 0.4 |
| 31 | Food | 1/1/2019 | Bad | 0.4 |
| 3 | Food | 1/1/2019 | Verygood | 0.4 |
| 4 | Food | 4/1/2019 | Verygood | 0.5 |
| 5 | Food | 4/1/2019 | Verygood | 0.5 |
| 6 | Food | 4/1/2019 | Bad | 0.5 |
| 7 | Food | 4/1/2019 | Bad | 0.5 |
| 8 | Food | 7/1/2019 | Verygood | 0.3 |
| 9 | Food | 7/1/2019 | verygood | 0.3 |
| 10 | Food | 7/1/2019 | Bad | 0.3 |
| 11 | Food | 7/1/2019 | Bad | 0.3 |
| 12 | Food | 7/1/2019 | Bad | 0.3 |
| 13 | Cloths | 1/1/2019 | Good | 0.4 |
| 14 | Cloths | 1/1/2019 | Good | 0.4 |
| 15 | Cloths | 1/1/2019 | Bad | 0.4 |
| 16 | Cloths | 1/1/2019 | Verygood | 0.4 |
| 17 | Cloths | 1/1/2019 | Verygood | 0.4 |
| 18 | Cloths | 4/1/2019 | Good | 0.5 |
| 19 | Cloths | 4/1/2019 | Good | 0.5 |
| 20 | Cloths | 4/1/2019 | Good | 0.5 |
| 21 | Cloths | 4/1/2019 | Verygood | 0.5 |
| 22 | Cloths | 4/1/2019 | Verygood | 0.5 |
| 23 | Cloths | 4/1/2019 | Bad | 0.5 |
| 24 | Cloths | 4/1/2019 | Bad | 0.5 |
| 25 | Cloths | 4/1/2019 | Bad | 0.5 |
| 26 | Cloths | 7/1/2019 | Verygood | 0.3 |
| 27 | Cloths | 7/1/2019 | Verygood | 0.3 |
| 28 | Cloths | 7/1/2019 | Bad | 0.3 |
| 29 | Cloths | 7/1/2019 | Bad | 0.3 |
| 30 | Cloths | 7/1/2019 | Bad | 0.3 |
Thanks in Advance
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.