The CreatorCon Call for Content is officially open! Get started here.

Is there a way to group monthly view counts of Knowledge by kb_category?

MugTm09
Giga Guru

Is there a way to group monthly view counts of Knowledge by kb_category?

 

As the kb_knowledge table records cumulative view counts,

I believe it's not feasible to perform monthly aggregation.

1 ACCEPTED SOLUTION

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @MugTm09 

I think you need to create a database view for this. The kb_use table can give you the view count, and the kb_knowledge table can provide the category. Build a DB view combining both and give it a try, mate.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @MugTm09 

I think you need to create a database view for this. The kb_use table can give you the view count, and the kb_knowledge table can provide the category. Build a DB view combining both and give it a try, mate.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Dr Atul G- LNG
Tera Patron
Tera Patron

Refer: https://INSTANCENAME.service-now.com/now/nav/ui/classic/params/target/sys_db_view.do%3Fsys_id%3D6414...

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Thanks, @Dr Atul G- LNG .

I’ll give the setup a try,

referring to the information in the link you sent.

kaushal_snow
Mega Sage

@MugTm09 ,

 

kb_knowledge table stores cumulative view counts rather than per month snapshots, which means you cannot reliably group monthly view counts by kb_category using the static value alone; to achieve true monthly aggregation by category you’ll need to capture the views in a time series manner (for example using the kb_use table or by creating a nightly snapshot job that stores monthly totals), and then use either Performance Analytics or a custom data source to build a trend report by category........

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/