Forum Discussion

NMOORE's avatar
NMOORE
Helper II
2 years ago
Solved

Power Apps Power BI Integration Distinct Count

Hi all, In Power Apps, I want to do a distinct count of values from a column which is coming in through Power BI integration (Power BI Integration is up and working well). So far I have been using t...
  • AmiraBedh's avatar
    2 years ago

    First, ensure you are accessing the full dataset from Power BI. Since `First(PowerBIIntegration.Data)` only gets the first record, you should use `PowerBIIntegration.Data` to access the entire dataset.

    Use the `Distinct()` function to create a table of distinct values from the 'Section' column. The syntax will be something like `Distinct(PowerBIIntegration.Data, Section)`.

    Finally, use the `CountRows()` function to count the number of rows in the distinct table you created. The final formula will look like `CountRows(Distinct(PowerBIIntegration.Data, Section))`.

     

    CountRows(Distinct(PowerBIIntegration.Data, Section))