web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / AddColumns - GroupBy -...
Power Apps
Answered

AddColumns - GroupBy - SharePointlist

(0) ShareShare
ReportReport
Posted on by

I have a formula that counts number of indikators and sum values. The formula is working, but I can't figure out how to place the Year on top for each count and sum. 

 

AddColumns(
 GroupBy(
 colAktivitetPrAar;
 "År";
 "Indikator";
 "alle_objekter"
 );
 "antall_indikator";
 CountRows(alle_objekter);
 "sum_antallKontakter";
 Sum(alle_objekter;AntallKontakter)
 
)

 

                                             2022                                 2023                                 

Indicator1123679146000
Indicator23231545
Indicator2113697115000

 

Can somebody Please help me ?

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @vidarv Can you show a screenshot of the result of u'r formula?

  • vidarv Profile Picture
    on at

    @CNT Thank you for answering

    vidarv_0-1681739022522.png

     

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @vidarv You have to wrap the whole thing in another GroupBy(......,"Ar", "ArGrroup")

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • vidarv Profile Picture
    on at

    @CNT Can you show me an example ? Not sure what you meant.

  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @vidarv 

    GroupBy(
    AddColumns(
     GroupBy(
     colAktivitetPrAar;
     "År";
     "Indikator";
     "alle_objekter"
     );
     "antall_indikator";
     CountRows(alle_objekter);
     "sum_antallKontakter";
     Sum(alle_objekter;AntallKontakter)
    );"År";"ÅrGroup"
    )

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • vidarv Profile Picture
    on at

    @CNT Do you mean two gallerys ? Your example will give me the year only ?

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @vidarv No! This is a nested Group. The Year in the outer Group and then the other stuff inside. How you want to display it is up to you - in a nested gallery for example.

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • vidarv Profile Picture
    on at

    @CNT  Ah you meant using the ÅrGroup and then concat , since ÅrGroup is a table. Thank you. 

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @vidarv 

    Glad to help!

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard