Need advice about what to put in a calculated column to support news filtering

%3CLINGO-SUB%20id%3D%22lingo-sub-1183471%22%20slang%3D%22en-US%22%3ENeed%20advice%20about%20what%20to%20put%20in%20a%20calculated%20column%20to%20support%20news%20filtering%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1183471%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20folk%3C%2FP%3E%3CP%3EI'm%20looking%20for%20some%20advice%20from%20someone%20who's%20a%20whiz%20with%20formulas%20for%20calculated%20columns%20and%2For%20query%20language.%26nbsp%3B%20I%20know%20how%20great%20these%20things%20are%20but%20unfortunately%20not%20my%20strength%20when%20it%20comes%20to%20creating%20them.%3C%2FP%3E%3CP%3EWhat%20I%20want%20to%20do%20is%20to%20use%20either%20the%20News%20web%20part%20or%20Highlighted%20content%20web%20part%20to%20present%20a%20list%20of%20'previous'%20news%20items%20and%20exclude%20the%20current%20page%20from%20the%20list.%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20I'm%20doing%20things%20at%20the%20moment%20is%20to%20simply%20add%20the%20current%20page%20title%20into%20the%20web%20part%20filter%20using%20managed%20properties.%26nbsp%3B%20This%20is%20achieves%20my%20desired%20outcome%20for%20a%20single%20page%2C%20but%20I'm%20trying%20to%20set%20up%26nbsp%3Ba%20page%20template%20with%20that%20has%20the%20web%20part%20on%20it%20with%20the%20filters%20already%20set%20so%20that%20my%20authors%20don't%20have%20to%20worry%20about%20updating%20the%20filter.%3C%2FP%3E%3CP%3EEssentially%2C%20I%20want%20the%20filter%20to%20be%20something%20like%3A%20Managed%20property%26nbsp%3B%26nbsp%3BTitle%26nbsp%3B%20does%20not%20equal%20%26nbsp%3B%22current%20page%20title%22%2C%20without%20needing%20to%20manually%20type%20in%20the%20actual%20page%20title.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20know%20that%20I%20can't%20do%20this%20with%20the%20out%20of%20the%20box%20filtering%20tools%20for%20the%20news%20web%20part%2C%20but%20was%20wondering%20if%20I%20could%20create%20some%20kind%20of%20calculated%20column%20to%20create%20another%20managed%20property%20that%20would%20help%20me%20achieve%20my%20objective.%3C%2FP%3E%3CP%3EI've%20been%20racking%20my%20brain%20trying%20to%20figure%20out%26nbsp%3Bwhat%20formula%20might%26nbsp%3Bbe%20suitable%20for%20use%20in%20a%20calculated%20column%2C%20but%20can't%20think%20of%20one.%26nbsp%3B%3C%2FP%3E%3CP%3EPerhaps%20using%20a%20custom%20query%20in%20the%20Highlighted%20Content%20web%20part%20would%20be%20better%2C%20but%20as%20per%20my%20opening%2C%20I'm%20not%20to%20strong%20with%20query%20language%20so%20would%20appreciate%20advice%20from%20someone%20with%20more%20knowledge.%3C%2FP%3E%3CP%3EThanks%20in%20advance%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1183471%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Contributor

Hi folk

I'm looking for some advice from someone who's a whiz with formulas for calculated columns and/or query language.  I know how great these things are but unfortunately not my strength when it comes to creating them.

What I want to do is to use either the News web part or Highlighted content web part to present a list of 'previous' news items and exclude the current page from the list. 

How I'm doing things at the moment is to simply add the current page title into the web part filter using managed properties.  This is achieves my desired outcome for a single page, but I'm trying to set up a page template with that has the web part on it with the filters already set so that my authors don't have to worry about updating the filter.

Essentially, I want the filter to be something like: Managed property  Title  does not equal  "current page title", without needing to manually type in the actual page title. 

I know that I can't do this with the out of the box filtering tools for the news web part, but was wondering if I could create some kind of calculated column to create another managed property that would help me achieve my objective.

I've been racking my brain trying to figure out what formula might be suitable for use in a calculated column, but can't think of one. 

Perhaps using a custom query in the Highlighted Content web part would be better, but as per my opening, I'm not to strong with query language so would appreciate advice from someone with more knowledge.

Thanks in advance

0 Replies