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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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