简体   繁体   中英

How to calculate average of Top 6 subjects in crystal reports?

I have a Table as follow

ID Num  Subject                           Q01
012488  FILIPINO                           88
012488  ARALING PANLIPUNAN                 84
012488  EDUK. SA PAGPAPAHALAGA             84
012488  ENGLISH                            90
012488  SCIENCE AND TECHNOLOGY             92
012488  MATHEMATICS                        84
012488  MAPEH                              94
012488  MUSIC/ARTS/HEALTH                  94
012488  PHYSICAL EDUCATION                 94
012488  TECHNOLOGY & LIVELIHOOD EDUC.      96

I can get the general average by doing Average ({Table.Q01}) in the formula fields. What I also want is getting the academic average which is the average of these list of subjects

FILIPINO, 
ARALING PANLIPUNAN, 
EDUK. SA PAGPAPAHALAGA, 
ENGLISH, 
SCIENCE AND TECHNOLOGY, 
MATHEMATICS

It does not seem possible to reduce the size of your table directly with the Average function, maybe you should try using the FILTER from DAX Functions and sorting the values ​​you want to keep before averaging.

Check here for more DAX infos

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM