Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Stack coloumchart grouping

I have to create a stack coloumn chart with the below table which is created using summarize DAX function from another table

osp = SUMMARIZE(Combine,Combine[Month],(Combine[osp]),"connections",count(Combine[connection]))

rahulkrishna14_0-1651527999156.png

osp is the name of the app and connections are the number of apps connected per month, In the stack chart I want to show the apps per month and apps with less than 100 connections into a separate group. How can this be done?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

You need to create a calculated column with the IF function, for example.

Column = IF('Table'[connections]>100,'Table'[osp],"others")

vcgaomsft_0-1651738476727.png

Attached PBIX file for reference.

 

Best Regards,

Gao
Community Support Team 

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems with it, please feel free to let us know. Thanks a lot!

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Anonymous ,

 

You need to create a calculated column with the IF function, for example.

Column = IF('Table'[connections]>100,'Table'[osp],"others")

vcgaomsft_0-1651738476727.png

Attached PBIX file for reference.

 

Best Regards,

Gao
Community Support Team 

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems with it, please feel free to let us know. Thanks a lot!

Anonymous
Not applicable

Thanks it Worked, I got visuals in the stack chart

rahulkrishna14_0-1651810727507.png

I tried to sort the legend with the highest connections at the bottom and then go in descending order. I have used the sort using legend but it's not sorting the visual. How can I sort the legend based on the connections

Anonymous
Not applicable

@amitchandak Can you please help on figuring out this?

amitchandak
Super User
Super User

@Anonymous , Try like

 

osp = filter( SUMMARIZE(Combine,Combine[Month],(Combine[osp]),"connections",count(Combine[connection])), [connections] < 100)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks for that, but what I'm looking for is different

rahulkrishna14_0-1651542559782.png


In the above graph, all the  osp with less than 100 connections per month  should show as "others" in the graph, How can this be done?

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors