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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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()) )

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
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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.