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 / Power apps chart creat...
Power Apps
Answered

Power apps chart creation using 2 choice column and date pickers

(0) ShareShare
ReportReport
Posted on by 94

Hi Community,

I am working on an internal project for Task tracking where my data source is a SharePoint list. I am trying to create an analytics screen to show the data for Task Status (Open, Closed, Cancelled, in progress) which is the choice column, and AI group again which is the choice column filtered by dates from and To. Tried to find on the web a solution and leads to achieving this but didn't find one.

The following is created in an Excel chart could this be possible in power apps along with Table filtered with date pickers from and to

 

vrevankar_0-1695146490495.png

 

 I have tried to create a collection of 2 choice columns and a Date column for now and the same data needs to be used to display in a column chart 

my X-Axis needs AI Group (Choice )

Y-Axis -count 

Legend - Task Status (choice)

 

I tried to use the following code but this gives me only a count of 1 choice column though 

AddColumns(
    GroupBy(
        AddColumns(
            Filter(
                'CollListColumns',
                field_1 >= DatePicker1.SelectedDate&& field_1 <= DatePicker2.SelectedDate
            ),
            "Vfield_10",
            field_10.Value
        ),
        "Vfield_10",
        "Group"
    ),
    "Count",
    CountRows(Group)
)
need help to develop a code that can club both choices columns' data and filter the same with date range 

my X-Axis needs AI Group (Choice )

Y-Axis -count 

Legend - Task Status (choice)

Thanks in advance 🙂

I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @vrevankar ,

     

    I assume there is a collection:

    ClearCollect(
     'CollListColumns',
     {field_1:Today(),Status:{Value:"Closed"},AIGroup:{Value:"App Team"}},
     {field_1:Today(),Status:{Value:"Open"},AIGroup:{Value:"App Team"}},
     {field_1:Today(),Status:{Value:"Closed"},AIGroup:{Value:"App Team"}},
     {field_1:Today(),Status:{Value:"Open"},AIGroup:{Value:"App Team"}},
     {field_1:Today(),Status:{Value:"Cancelled"},AIGroup:{Value:"FW Team"}},
     {field_1:Today(),Status:{Value:"Closed"},AIGroup:{Value:"New Team"}}
    );

    Please try:

    AddColumns(
     GroupBy(
     AddColumns(
     Filter(
     'CollListColumns',
     field_1 >= DatePicker1.SelectedDate&& field_1 <= DatePicker2.SelectedDate
     ),
     "VStatus",
     Status.Value,
     "VAIGroup",
     AIGroup.Value
     ),
     "VAIGroup",
     "Group"
     ),
     "Closed",
     CountRows(Filter(Group,VStatus="Closed")),
     "Open",
     CountRows(Filter(Group,VStatus="Open")),
     "Cancelled",
     CountRows(Filter(Group,VStatus="Cancelled"))
    )

    Result:

    vbofengmsft_0-1695178085785.png

     

    Best Regards,

    Bof

     

  • vrevankar Profile Picture
    94 on at

    @v-bofeng-msft  That's perfect !!! 🙂 thanks appreciate your help sir

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard