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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ArashZ
Helper I
Helper I

Count of users in the organization

Hi,

I have a table like below:

UserOrganization
aA
bA
cB
dB
eB
fC
gC
hC
iC
jC
kD
lE
mE
nE
oE
pF
qF
rF
SF

 

I want to create a pie chart to count the

Number of organizations with 1 user

Number of organizations with 2-3 user

Number of organizations with more than 3 users, like below:

ArashZ_0-1629217920122.png

 

 

4 REPLIES 4
Anonymous
Not applicable

Hi @ArashZ 

 

1)Go to Power Query editor and right click on the organization column and click 'Group By' as shown below:

 

Aditya_Meshram_1-1629219025317.png

 

 

2) Choose these settings and click OK.

Aditya_Meshram_2-1629219122404.png

 

3) You'll get a table like this:

Aditya_Meshram_3-1629219179002.png

 

4) Now click on close and apply:

 

Aditya_Meshram_5-1629219250446.png

 

5) Now create a calculated column like this using this DAX.

 

Count Bucket = 
SWITCH(
    TRUE(),
    'Table'[Count] > 3,"Number of organizations with more than 3 users",
    'Table'[Count] >1,"Number of organizations with 2-3 users",
    "Number of organizations with 1 user"
)

 

Aditya_Meshram_0-1629221468566.png

 

Set the Summarization of Count to "Don't summarize".

6) Now plot the values in this way :

Aditya_Meshram_7-1629220780971.png

 

This is the required solution as requested.

 

Link to this .pbix file :

https://nicesoftwaresolutions1-my.sharepoint.com/:u:/g/personal/ameshram_nicesoftwaresolutions_com/E...

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

 

Regards,

Aditya

Hi @Anonymous Thanks. But I don't want to create a physical table. Is there a way to calculate a table on the fly for this?

@AnonymousHi,

Thanks for the answer. However, would it be possible to create a measure or calculated column, instead of using power Query? I don't have access to power query and prefer using measures or columns.

 

Anonymous
Not applicable

To the best of my knowledge, I don't think it's possible to do so through measures or calculated columns. However, if you say that your problem is not having access to Power Query, you can bypass that by creating a summary table by clicking on New Table and using this DAX. 

Summary table = 
SUMMARIZE(
    'Table',
    'Table'[Organization],
    "Count",
    COUNT('Table'[User])
)

Aditya_Meshram_0-1629228161308.png

In this way you can get the table obtained in step 3 of my original solution without having to use Power Query. Then you can proceed like we did in the original solution.

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

 

Regards,

Aditya

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.