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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AAPBI
Regular Visitor

Grouping by different conditions

Hi,

 

I'm rather new to using power bi, and this might be answered multiple times by now, but I couldn't get it to work for me.

 

I have a table that contains different account numbers and types from different channels, and I'd like to count the number of accounts opened based on the account types and channel.

 

my data looks something like this

 

acct noacct typechannel
321SAV2
21231CUR2
231654NTD1
23132VEV3
231VEV1
51STD3
21SAV2
314SAV1

 

I need to create the below graph

Capture.png

 

in sybase, I would do something like this

 

select acct_type, channel, count(acct_no)

from my table

group by acct_type, channel

 

how can that be done in power bi

 

thank you 😊

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@AAPBI , Take acct_type, channel on Axis, and legend to Clustered column visual or vice versa .

https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-combo-chart

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@AAPBI , Take acct_type, channel on Axis, and legend to Clustered column visual or vice versa .

https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-combo-chart

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.