cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JakobDahl
Level: Powered On

Chaining operation doesn't work - Expected an operator

Hello everyone,

 

Can someone explain to me why the chaining operation below is invalid? - i've tried with both operators: (; and ;Smiley Wink

chainingoperation.png

Kind Regards

Jakob

1 ACCEPTED SOLUTION

Accepted Solutions
Thomas_B
Level: Powered On

Re: Chaining operation doesn't work - Expected an operator

Hi @JakobDahl

 

If i'm right you put this operation in an Item field which can't work like that.

 

In this kind of field you have to put a result or a table as only possible operation.

 

You could try something like this:

 

If(SortByNavn = true;

     Sort(

          Filter(Onboarding_1;Ansættelsesdato>Now());

          Navn;

          Ascending);

     SortByTitel = true;

     Sort(

          Filter(Onboarding_1;Ansættelsesdato>Now());

          Titel;

          Ascending);

     SortByAnsatdato = true;

     Sort(

          Filter(Onboarding_1;Ansættelsesdato>Now());

          Ansættelsesdato;

          Ascending);

)

 

Hope this will help you

2 REPLIES 2
Thomas_B
Level: Powered On

Re: Chaining operation doesn't work - Expected an operator

Hi @JakobDahl

 

If i'm right you put this operation in an Item field which can't work like that.

 

In this kind of field you have to put a result or a table as only possible operation.

 

You could try something like this:

 

If(SortByNavn = true;

     Sort(

          Filter(Onboarding_1;Ansættelsesdato>Now());

          Navn;

          Ascending);

     SortByTitel = true;

     Sort(

          Filter(Onboarding_1;Ansættelsesdato>Now());

          Titel;

          Ascending);

     SortByAnsatdato = true;

     Sort(

          Filter(Onboarding_1;Ansættelsesdato>Now());

          Ansættelsesdato;

          Ascending);

)

 

Hope this will help you

Highlighted
JakobDahl
Level: Powered On

Re: Chaining operation doesn't work - Expected an operator

Perfect, that worked! Smiley Wink

 

I was indeed using this operation in an item field in a gallery, thanks for the explanation. 

Have a nice day! Smiley Very Happy

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 174 members 4,627 guests
Please welcome our newest community members: