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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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()) )

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.