cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Prodigy
Post Prodigy

FILTER GALLERY BY MONTH AND YEAR

I have a gallery that comes from the CDS (Common Data Service)...

 

And she has several fields with dates ...

 

In the gif below shows the standard field ...

 

ERRO.gif

 

What I need...

 

Filter the gallery to only show items that match the month "06/2019"

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: FILTER GALLERY BY MONTH AND YEAR

Create a collection OnVisible:

ClearCollect(MyPedido, 'Pedido e faturamento')

 

Then filter:

Filter (MyPedido; "06/2019" in Text(mesfaturamento;"mm/yyyy"))

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

18 REPLIES 18
Highlighted
Super User III
Super User III

Re: FILTER GALLERY BY MONTH AND YEAR

Try this

Filter (Datasource, Text(DateColumn,"mm/yyyy") >="06/2019")

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Highlighted
Post Prodigy
Post Prodigy

Re: FILTER GALLERY BY MONTH AND YEAR

Hi @eka24 ,

 

He says he expects a value of type number...

 

 

So I tried this:

 

Filter(Colaborações; Text(Value(ThisItem.M1);"[$-pt-BR]mm/yyyy")>="08/2020")

 

Error again...

 

ERRO.gif

Highlighted
Super User III
Super User III

Re: FILTER GALLERY BY MONTH AND YEAR

Please look at the formula I gave again. It didn't include Thisitem. Recheck and place the formula on the Items property of the Gallery. Your formula with Thisitem is not necessary

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Highlighted
Post Prodigy
Post Prodigy

Re: FILTER GALLERY BY MONTH AND YEAR

Same! 😞

Highlighted
Super User III
Super User III

Re: FILTER GALLERY BY MONTH AND YEAR

Can you show the new formula that is giving you same result

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Highlighted
Post Prodigy
Post Prodigy

Re: FILTER GALLERY BY MONTH AND YEAR

Here...

 

ERRO.gif

Highlighted
Super User III
Super User III

Re: FILTER GALLERY BY MONTH AND YEAR

Replace value with Text as I gave in the formula. Instead of value put Text.

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Highlighted
Post Prodigy
Post Prodigy

Re: FILTER GALLERY BY MONTH AND YEAR

Here...

 

ERRO.gif

Highlighted
Super User III
Super User III

Re: FILTER GALLERY BY MONTH AND YEAR

Please use only equal to sign = 

That's remove > from the formula.

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (9,901)