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
PPalkowski
Helper II
Helper II

Percentage of Type

I am trying to create a mesure on a visual that will give me perctange of each type.

 

Here is the table

I need one visual that show 60% for STANDARD and 40% for NORMAL

NumberTYPE
ID00125STANDARD
ID00126NORMAL
ID00127STANDARD
ID00128STANDARD
ID00129STANDARD
ID00130STANDARD
ID00131STANDARD
ID00132NORMAL
ID00133NORMAL
ID00134NORMAL

 

ANy help would be appreciated

1 ACCEPTED SOLUTION
danielkinch
Frequent Visitor

Hi @PPalkowski - what type of visual are trying to show this on?

 

You could create separate measures for each type, e.g.

Standard % =
CALCULATE(COUNTROWS(TABLE), FILTER(TABLE,TABLE[TYPE]="STANDARD")) /
COUNTROWS(TABLE)
 
Or alternatively, if it's a pie / donut chart then you simply need to drag the TYPE field into the values & legend field.
 
Hope this helps.
 

View solution in original post

2 REPLIES 2
danielkinch
Frequent Visitor

Hi @PPalkowski - what type of visual are trying to show this on?

 

You could create separate measures for each type, e.g.

Standard % =
CALCULATE(COUNTROWS(TABLE), FILTER(TABLE,TABLE[TYPE]="STANDARD")) /
COUNTROWS(TABLE)
 
Or alternatively, if it's a pie / donut chart then you simply need to drag the TYPE field into the values & legend field.
 
Hope this helps.
 

Brilliant!

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.

Top Solution Authors