Hi community,
I have searched and found some similar cased in the forum and tried to get it worked myself but so far not successful. Hopefully someone could help me. I have a Date column in the SP Lists, and I created two calculated column to extract Year and Month from that Date Column (named LogDate). In PowerApps, I want to have two drop down on screen for user to select which month/year data they prefer to see and by default, the gallery should filter out the latest LogDate's Month and Year related data. For example, if the latest entry are 2/25/2023, by default, the gallery will filter data that are from Feb and 2023 (which are the default value I'd like to have shown in the dropdown when user arrive this screen).
Currently I have in Month "Items" property = Distinct('SPList', Month) but I couldn't figure out how to get it to show latest Month as default and force the gallery to filter that latest month data. (Same goes with Year but I figure it is the same solution as to the Month dropdown.
Please can anyone help. Many thanks!