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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
gaccho_na
New Member

How to create composition ratio in powerBI ---2

Hello,

I want to display output Matrix B from data table A.

Too difficult for me.

Please Help me !

 

data table A

DateDIVAttvalue
2020/04Net SalesActual600,000
2020/04Net SalesPlan590,000
2020/04Cost of SalesActual300,000
2020/04Cost of SalesPlan310,000
2020/04Gross ProfitActual300,000
2020/04Gross ProfitPlan280,000
2020/04SGA expensesActual120,000
2020/04SGA expensesPlan120,000
2020/04Operating incomeActual180,000
2020/04Operating incomePlan160,000
2020/05Net SalesActual800,000
2020/05Net SalesPlan810,000
2020/05Cost of SalesActual390,000
2020/05Cost of SalesPlan400,000
2020/05Gross ProfitActual410,000
2020/05Gross ProfitPlan410,000
2020/05SGA expensesActual125,000
2020/05SGA expensesPlan130,000
2020/05Operating incomeActual285,000
2020/05Operating incomePlan280,000
2020/06Net SalesActual500,000
2020/06Net SalesPlan490,000
2020/06Cost of SalesActual260,000
2020/06Cost of SalesPlan250,000
2020/06Gross ProfitActual240,000
2020/06Gross ProfitPlan240,000
2020/06SGA expensesActual120,000
2020/06SGA expensesPlan130,000
2020/06Operating incomeActual120,000
2020/05Operating incomePlan110,000

 

output Matrix B
Slicer : Date = 2020/04

 Plan Actual 
 TTL Value Plancomposition ratioTTL Value Actualcomposition ratio
Net Sales590,000100.0%600,000100.0%
Cost of Sales310,00052.5%300,00050.0%
Gross Profit280,00047.5%300,00050.0%
SGA expenses120,00020.3%120,00020.0%
Operating income160,00027.1%180,00030.0%
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@gaccho_na , You need two measures

 

M1 = sum(Data[Value])

% = Divide(sum(Data[Value]), calculate(sum(Data[Value]), filter(allselected(Data[DIV]), Data[DIV] = "Net Sales" )))

 

Please find the attached file after signature

 

 

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@gaccho_na , You need two measures

 

M1 = sum(Data[Value])

% = Divide(sum(Data[Value]), calculate(sum(Data[Value]), filter(allselected(Data[DIV]), Data[DIV] = "Net Sales" )))

 

Please find the attached file after signature

 

 

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.