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

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

Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

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

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 56 members 4,252 guests
Please welcome our newest community members: