Custom KQL query to filter by most viewed in specified time range

%3CLINGO-SUB%20id%3D%22lingo-sub-1071425%22%20slang%3D%22en-US%22%3ECustom%20KQL%20query%20to%20filter%20by%20most%20viewed%20in%20specified%20time%20range%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1071425%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20trying%20to%20use%20custom%20query%20on%20the%20highlighted%20contents%20web%20part%20in%20SharePoint%20Online.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EObjective%20is%20to%20filter%20to%20the%20most%20viewed%20items%20within%20the%20past%203%20months.%20If%20I'm%20not%20mistaken%2C%20we%20can%20only%20sort%20the%20highlighted%20contents%20by%20%22most%20viewed%20from%20beginnning%20of%20time%22.%20Is%20there%20a%20KQL%20query%20that%20will%20return%20results%20for%20a%20time-bound%20%22most%20viewed%22%20list%20of%20items%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAppreciate%20any%20advice.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1071425%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EHighlighted%20Content%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHighlighted%20content%20web%20part%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ekql%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

I'm trying to use custom query on the highlighted contents web part in SharePoint Online. 

 

Objective is to filter to the most viewed items within the past 3 months. If I'm not mistaken, we can only sort the highlighted contents by "most viewed from beginnning of time". Is there a KQL query that will return results for a time-bound "most viewed" list of items?

 

Appreciate any advice.

0 Replies