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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
SteelChampzz
Helper II
Helper II

DAX Measure for Percentage Calculation with two tables

I have 3 tables:

*Fruit-Ordered*

*Fruit-Sold*

*Fruit+Ordered*

SteelChampzz_0-1665162905213.png

 

I've brought this data in from Excel but I need to be able to create a measure in Power BI to create "Percentage" for the Total & also the "percentage" for the Products as well.

 

"Percentage Total"

SteelChampzz_1-1665163073617.png

 

"Percentage Per Product"

SteelChampzz_2-1665163133014.png

 

I've already have a measure for the total of "Sold+Ordered" but having the issues with using "VAR" or "FILTERS" to create the measures for the "Percentage Total" AND "Percentage Per Product"

 

Happy Friday people and thank you for any help coming my way

 

5 REPLIES 5
v-yinliw-msft
Community Support
Community Support

Hi @SteelChampzz ,

 

Sorry I have confused what you want, because I can only see two same sample table to explain your question.

Could you please show me your expect result in Excel by this sample data?

It is very helpful to solve the problem.

 

Best Regards,

Community Support Team _Yinliw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I want to get the "Percentage per Total"

SteelChampzz_3-1665410639958.png

 

 

As well as "Percentage Per Product"

SteelChampzz_4-1665410675591.png

 

 

I've circled the DAX measures that I need for both in PowerBI, and I've also have the cell numbers and functions circled that I used in Excel as well to get the percentages from the table.

 

amitchandak
Super User
Super User

@SteelChampzz , you need to create common tables and then analyze the data together

 

% of the total is usually

 

Divide(sum(Table[Amount]), calculate(sum(Table[Amount]), allselected()) )

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

Could you better explained the "common table"?

I'm very confused with this part

How would I set this up with the multiple tables I have?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors