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

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

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

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