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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
LyonsBI_BRL
Helper III
Helper III

Calculate Percentage by SKU category

I'm needing some help to calculate the over all percentage of each SKU. 

So this way I can create a card one showing the total number of times the customer has selected that SKU, as well as what percentage is it of all of the SKUs that are available. 

 

LyonsBI_BRL_1-1628571709341.png

Any help would be greatly appreciated

 

1 ACCEPTED SOLUTION

Figured it out thank you all though!! 🙂

 

Percent of SKU1 =
VAR SKU =
Sum('Grouped MainLOE'[SKURequested1])
VAR SKUAll =
SUMX(
ALL('Grouped MainLOE'),
'Grouped MainLOE'[SKURequested1]
)
Return
DIVIDE(SKU,SKUAll)

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

HI @LyonsBI_BRL .

Follow the below mentioned steps in order to get the desired output;

1)Create a measure as TotalCount=COUNT(Table(SKU)).

2)EveryCount=CALCULATE([TotalCount],ALL(Table(SKUCategory)).

3)%ofTotal=DIVIDE([TotalCount],[EveryCount],0).

 

Regards,

Sanket Bhagwat.

 

@Anonymous is there a way to exclude rows? Basically I have several rows that return NO SKU Selected, can I exclude those?

Anonymous
Not applicable

If there are less rows and you can identify which rows have no SKU, then you can filter out those rows in the filter pane.

amitchandak
Super User
Super User

@LyonsBI_BRL , Based on what I got, You can right click on measure and use % of total in visualization.

 

Or create a measure 

divide(count(Table[SKU]), calculate(count(Table[SKU]), allselected(Table)))

Percent of total.png

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Figured it out thank you all though!! 🙂

 

Percent of SKU1 =
VAR SKU =
Sum('Grouped MainLOE'[SKURequested1])
VAR SKUAll =
SUMX(
ALL('Grouped MainLOE'),
'Grouped MainLOE'[SKURequested1]
)
Return
DIVIDE(SKU,SKUAll)

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.