筛选库,以删除PowerApps中的重复项(无区别)

时间:2019-07-25 12:20:03

标签: filter duplicates distinct powerapps

我已经准备好图库,该图库将从excel文件导入的项目显示为列表。单击某些项目后,用户将被重定向到包含所选项目详细信息的下一个屏幕。 由于存在很多重复项,因此我决定添加另一个屏幕,其中包含画廊的副本,但使用仅显示具有上一屏幕中所选名称的项目的过滤器-可以正常工作。 现在,我想消除主列表中的重复项(显示所有项目),因此用户只能看到一个名称,在单击该名称(在下一个屏幕上)后,将显示具有该名称的所有项目。

我尝试了独特但没有成功的尝试。据我了解,另外,distinct创建了删除重复项的新列。我想避免这种情况,需要大量的精力来重建应用程序。 如果有这种可能性,我希望它可以直接在图库中过滤掉重复项(所以它的作用类似于filter / search / sort)

If(
    dropdown_sort.Selected.Value = "Name of the training";
    SortByColumns(
        Search(
            Filter(
                Table1_2;
                '4. Area of training' = "IT-related" || '4. Area of training' = "IT and BIZ-related"
            );
            search_engine.Text;
            "3_x002e__x0020_Name_x0020_of_x0020_the_x0020_training";
            "1_x002e_Name_x0020_and_x0020_surname"
        );
        "3_x002e__x0020_Name_x0020_of_x0020_the_x0020_training";
        If(
            sort;
            Ascending;
            Descending
        )
    );
    SortByColumns(
        Search(
            Filter(
                Table1_2;
                '4. Area of training' = "IT-related" || '4. Area of training' = "IT and BIZ-related"
            );
            search_engine.Text;
            "3_x002e__x0020_Name_x0020_of_x0020_the_x0020_training";
            "1_x002e_Name_x0020_and_x0020_surname"
        );
        "7_x002e__x0020_Describe_x0020_your_x0020_level_x0020_of_x0020_satisfaction_x0020_after_x0020_the_x0020_training_x002e_";
        If(
            sort;
            Ascending;
            Descending
        )
    )
);    

我上面有一些代码来支持简单的搜索引擎,排序(asc / desc),下拉菜单,确定要排序的列。因此,我认为我们必须在其中添加另一个功能。 对不起,对于代码,因为它没有很好的优化。如果您有任何清理思路,请不要急于提及。 谢谢。

0 个答案:

没有答案
相关问题