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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
harib
Post Patron
Post Patron

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
henriquesilveir
Resolver IV
Resolver IV

@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
henriquesilveir
Resolver IV
Resolver IV

@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.

@henriquesilveir

 

Thanks bro. I got the OUTPUT. Many thanks

 

 

 Capture.JPG

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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