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 ;;)

chainingoperation.png

Kind Regards

Jakob

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
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

View solution in original post

2 REPLIES 2
Highlighted
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

View solution in original post

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
thirdimage

Power Platform 24

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (4,819)