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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Material wise Sum and divide with common materials.

Dear Experts,

 

I am in need of a DAX formula for the below mentioned query and screenshot. I have tried in different ways to meet the exact output. Could anyone please help me out of it. 

 

ajay_techbrawn_1-1629094569609.png

 

 

Regards,

Ajay

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Try measure like

 

calculate(sum(Table[Actual Amount]) , filter(allselected(Table), Table[plant] = max(Table[plant]) && Table[Mat Group] = max(Table[Mat Group]) ))

 

 

calculate(Average(Table[Actual Amount]) , filter(allselected(Table), Table[plant] = max(Table[plant]) && Table[Mat Group] = max(Table[Mat Group]) ))

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

@Anonymous , Try measure like

 

calculate(sum(Table[Actual Amount]) , filter(allselected(Table), Table[plant] = max(Table[plant]) && Table[Mat Group] = max(Table[Mat Group]) ))

 

 

calculate(Average(Table[Actual Amount]) , filter(allselected(Table), Table[plant] = max(Table[plant]) && Table[Mat Group] = max(Table[Mat Group]) ))

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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