Slice with the first occurence in column

Hi,

I need a slice with only one row for value and user.

My table is like that

Bet_Jordana_0-1648031513487.png

and i need a slice like that

Bet_Jordana_1-1648031695775.png

with only the first ocurrence of the data

 It's possible to achieve it?

Thanks!

 

 

 

Solved Solved
0 10 276
2 ACCEPTED SOLUTIONS

Please try 

Please create a column called [Date] with an expression DATE([Date/Time In])

Then your slice expression can be 

[Key Column] =MINROW("Table Name", "Date/Time In", AND([Email]=[_THISROW].[Email], [Date]=[_THISROW].[Date]))

 

Please try changing the name of the column [Date/Time In] because "/" can be confused with division. Please try avoiding special symbols used in computation etc. and function names such as SELECT(), LOOKUP()in column names.

https://help.appsheet.com/en/articles/2357311-minrow

View solution in original post

Also your data seems to have changed. You have included only a date column instead of [DateTime] column.  So all the below data is identical and the expression will not work with only "Date".  There are other such groups of identical data rows. You will need DateTime type column as clearly mentioned in the earlier post and expression.

[Key Column] =MINROW("Table Name", "Date/Time In", AND([Email]=[_THISROW].[Email], [Date]=[_THISROW].[Date]))

Please note the above expression has two different columns "Date/Time In" ( DateTime type) and "Date" ( Date Type)

Suvrutt_Gurjar_0-1648119785703.png

below data is again identical

Suvrutt_Gurjar_2-1648119968707.png

 

View solution in original post

10 REPLIES 10

Please try 

Please create a column called [Date] with an expression DATE([Date/Time In])

Then your slice expression can be 

[Key Column] =MINROW("Table Name", "Date/Time In", AND([Email]=[_THISROW].[Email], [Date]=[_THISROW].[Date]))

 

Please try changing the name of the column [Date/Time In] because "/" can be confused with division. Please try avoiding special symbols used in computation etc. and function names such as SELECT(), LOOKUP()in column names.

https://help.appsheet.com/en/articles/2357311-minrow

It works! Thanks a lot!

Oh! With this expression, export the slice to csv is not working ! Maybe is a bug?

The CSV download will depend  on the underlying slice or table. It works perfectly for me when tested in a similar condition.  

You may wish to mention what problem you are facing and also check how you have set up CSV action, its locale, whether CSV action is enabled and applicable to the slice and so on.

With the expression

[UniqueID] =MINROW("Moviments", "Date", AND(IN([Edifici],Filtres[Edificio]), [Date]=[_THISROW].[Date]))

the export works correctly, but  with this expression don't do it

[UniqueID] =MINROW("Moviments", "Date", AND(IN([Edifici],Filtres[Edificio]), [Date]=[_THISROW].[Date],[Email]=[_THISROW].[Email]))

You cant try in

https://www.appsheet.com/Template/AppDef?appName=DES-Entradas-Salidas-1248631#Home

Also your data seems to have changed. You have included only a date column instead of [DateTime] column.  So all the below data is identical and the expression will not work with only "Date".  There are other such groups of identical data rows. You will need DateTime type column as clearly mentioned in the earlier post and expression.

[Key Column] =MINROW("Table Name", "Date/Time In", AND([Email]=[_THISROW].[Email], [Date]=[_THISROW].[Date]))

Please note the above expression has two different columns "Date/Time In" ( DateTime type) and "Date" ( Date Type)

Suvrutt_Gurjar_0-1648119785703.png

below data is again identical

Suvrutt_Gurjar_2-1648119968707.png

 

I have corrected the expression and now the export works as expected. Thanks again!

Regarding the expression, perhaps just:

NOT( IN([email], sliceName[email]) )

 Just an idea, havenโ€™t tested it. 

Thank you for the details. You have added more conditions ( you did not mention [Edificio] earlier) and changed the configuration to dashboard. So more changes could be required.

Please try with mentioning your action "Export"  in the slice "FilteredMovs" in place of Auto

Suvrutt_Gurjar_0-1648118737009.png

 

Also please mention the following in the action's "Only if this condition is true"

1) CONTEXT("View")="Consulta"

If this does not work , please try 

CONTEXT("View")="ConsultaColaboradors"

 

Neither works

Top Labels in this Space