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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
supervkc
New Member

Percentage with Count Quantity

New user to Power BI here, and I am trying to calculate the percentage of each count of Qty from the total quantity count.

 

I am missing something in my formula, and my percentages are off.

 

I need to calculate 458/572, 92/572 and 22/572.

 

HEX3.2-18.jpg

 

Any help is much appreciated.

2 ACCEPTED SOLUTIONS
v-qiuyu-msft
Community Support
Community Support

Hi @supervkc,

 

In your scenario, you can create a measure with the DAX like below:

 

% = DIVIDE(COUNT('18'[Qty]),CALCULATE(COUNT('18'[Qty]),ALL('18')),0)

 

Assume the sample data like this:

 

q4.PNGq5.PNG

 

Best Regards,
Qiuyun Yu

 

 

 

 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi,

 

There is another easy way to do it.  Right click the metric or measure. Click Quik calc. In the dialog box, choose percentage of grand total.

 

Capture.PNGCapture1.PNG

View solution in original post

2 REPLIES 2
v-qiuyu-msft
Community Support
Community Support

Hi @supervkc,

 

In your scenario, you can create a measure with the DAX like below:

 

% = DIVIDE(COUNT('18'[Qty]),CALCULATE(COUNT('18'[Qty]),ALL('18')),0)

 

Assume the sample data like this:

 

q4.PNGq5.PNG

 

Best Regards,
Qiuyun Yu

 

 

 

 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

 

There is another easy way to do it.  Right click the metric or measure. Click Quik calc. In the dialog box, choose percentage of grand total.

 

Capture.PNGCapture1.PNG

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.