Skip to main content

Notifications

Community site session details

Community site session details

Session Id : W0nHTJGVJbURyj/KPFOi6N
Power Apps - Building Power Apps
Unanswered

Distinct Count Power BI Integration

Like (0) ShareShare
ReportReport
Posted on 16 Nov 2023 09:32:26 by 2

Hi all,

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 this to take the first section:

 

First(PowerBIIntegration.Data).Section

 

It would be using the same item as above, but where the table shows the below I just need the answer to be 2:

 

Section 

1.1.2.4 

1.1.2.4

1.1.2.4

1.1.1.1

1.1.1.1

 

Many thanks for any help,

Nick

  • MooreTandT Profile Picture
    2 on 17 Nov 2023 at 08:11:10
    Re: Distinct Count Power BI Integration

    Hi Wearsky,

     

    Thanks as lot for your reply.

     

    unfortunately that formula is throwing an error as per below:

     

    MooreTandT_0-1700208333472.png

    I think because it just says Section in the area highlighted, it always needs to reference the Power BI integration (this is the only place where Section exists) - I'm unsure why it says {0} isn't recognised though?

     

    I tried replacing it as per below but with no joy.

     

    MooreTandT_1-1700208523406.png

     

    Cheers,

     

    Nick

  • v-xiaochen-msft Profile Picture
    on 17 Nov 2023 at 03:07:55
    Re: Distinct Count Power BI Integration

    Hi @MooreTandT ,

     

    Please try to use distinct function.

    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-distinct

     

    Distinct(First(PowerBIIntegration.Data).Section,Section)

     

    Best Regards,

    Wearsky

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
MS.Ragavendar Profile Picture

MS.Ragavendar 10

#2
LC-26081402-0 Profile Picture

LC-26081402-0 6

#3
EE-04041031-0 Profile Picture

EE-04041031-0 4

Overall leaderboard
Loading started