cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

Count of category

Hi,

I have two requirments. 

 

1. 

I have a stage column.i want the count of each stage and  i want the ratio (Each stage count  devided by  total count) . 

I need out put like below table. Excel screen shot.but i want it in powerbi using dax

 

test.JPG

 

 

Source : https://drive.google.com/open?id=19zO_1z4cvdNlPv6hTNfUJG1v9sVhE-Sn

 

 

2. 

I have a OWNER column.i want the distinct count of each OWNER  of opportunity name distinct and  i want the ratio (Each opportunity name distinct  devided by  total count) . 

I need out put like below table. 

 

 

test2.JPG

Source : https://drive.google.com/open?id=1hlL6bhutQkrRefNlafCFRFz87UtAvpHZ

 

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resolver IV
Resolver IV

Re: Count of category

@harib hello, you don't need dax to do this, in the field value, clique in the arrow, and you will see an option 'show value as' when you set it, you can choose to set value the percentage of total. Now the measure will represent the % of total of value divide by the categorie as you select. in this case, % of total of stage.

 

take a look is this arcticle:

 

 

How to do as i said:  https://www.fourmoo.com/2017/07/18/power-bi-dax-measures-for-excel-based-of-column-total-or-of-row-t...

 

 

 

How to do using dax (i don't reccomend, because you have it in standart mode): https://community.powerbi.com/t5/Power-BI-User-Group-Norway/percentage-of-total/gpm-p/89386

 

 

if you got a solution don't forget to mark this post as solution because other people may have the same situation in the future.

View solution in original post

2 REPLIES 2
Highlighted
Resolver IV
Resolver IV

Re: Count of category

@harib hello, you don't need dax to do this, in the field value, clique in the arrow, and you will see an option 'show value as' when you set it, you can choose to set value the percentage of total. Now the measure will represent the % of total of value divide by the categorie as you select. in this case, % of total of stage.

 

take a look is this arcticle:

 

 

How to do as i said:  https://www.fourmoo.com/2017/07/18/power-bi-dax-measures-for-excel-based-of-column-total-or-of-row-t...

 

 

 

How to do using dax (i don't reccomend, because you have it in standart mode): https://community.powerbi.com/t5/Power-BI-User-Group-Norway/percentage-of-total/gpm-p/89386

 

 

if you got a solution don't forget to mark this post as solution because other people may have the same situation in the future.

View solution in original post

Highlighted
Helper V
Helper V

Re: Count of category

@henriquesilveir

 

Thanks bro. I got the OUTPUT. Many thanks

 

 

 Capture.JPG

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors