cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Column Chart in Canvas app using Multiselect Option set from Dynamics

Hi Team,

 

We have a requirement to count the number of appointments created last week based on a multi-select option set.

 

VKvinit_1-1601403597601.png

Can you please advise

 

Thanks in Advance.

Vinith

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Column Chart in Canvas app using Multiselect Option set from Dynamics

Hi @VKvinit ,

 

I assume there are four options in Multi-select option set, so please try with this code to generate a collection to display the chart.

 

ClearCollect(
colchart,
{Option:"A", AppointNumber: Filter('Entity Name', OptionSetName.A in MOSfieldName.Value)}, 
{Option:"B", AppointNumber: Filter('Entity Name', OptionSetName.B in MOSfieldName.Value)},
{Option:"C", AppointNumber: Filter('Entity Name', OptionSetName.C in MOSfieldName.Value)},
{Option:"D", AppointNumber: Filter('Entity Name', OptionSetName.D in MOSfieldName.Value)}
) 

 

Then set the colchart as the Items property of column chart. 

Please note the distinction of Option Set and Multi-Select Option Set Field. 

Snipaste_2020-10-01_14-18-07.png

Hope this helps.

Sik

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Column Chart in Canvas app using Multiselect Option set from Dynamics

Hi @VKvinit ,

 

I assume there are four options in Multi-select option set, so please try with this code to generate a collection to display the chart.

 

ClearCollect(
colchart,
{Option:"A", AppointNumber: Filter('Entity Name', OptionSetName.A in MOSfieldName.Value)}, 
{Option:"B", AppointNumber: Filter('Entity Name', OptionSetName.B in MOSfieldName.Value)},
{Option:"C", AppointNumber: Filter('Entity Name', OptionSetName.C in MOSfieldName.Value)},
{Option:"D", AppointNumber: Filter('Entity Name', OptionSetName.D in MOSfieldName.Value)}
) 

 

Then set the colchart as the Items property of column chart. 

Please note the distinction of Option Set and Multi-Select Option Set Field. 

Snipaste_2020-10-01_14-18-07.png

Hope this helps.

Sik

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,791)