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
wagga07
Frequent Visitor

Average with two columns

Dear Power Bi community & super user

I am traing to make a new measute to calculate an average by Name & by Attribute 

I have these value diplayed on this first Matrix

Matrix Values = Count of Attribute 

Slicer on date collumn ( 3 days selected) & Manager collumn ( Manager 1 selected)

ManagerAttibute 0Atribute 1Attribute 3Attribute 4Total
- Manager 1144918
    Name a  213
    Name b 1 23
    Name c11 13
    Name d 1113
    Name e   33
    Name f 1113
Total 144918

 

I Would like to calculate the average and reaching giving this result

This measure below shot simply the result but Count day & Count name must keep the value of 3 for 3 days & 6 for Name

New Mesure = Count Attribute / (3// Count days *6 //Count Name)*6 //Count Name

0.33333+1.3333+1.3333+3=6    Total Count of Name

 

ManagerAttibute 0Atribute 1Attribute 3Attribute 4Total
- Manager 10.331.331.3336
    Name a  0.670.331
    Name b 1 0.671
    Name c11 0.331
    Name d 110.331
    Name e   11
    Name f 110.331
Total 0.331.331.3336

 

Thanks a lot for your Help

2 REPLIES 2
wagga07
Frequent Visitor

OK I will work on it, Thanks for the advice

Greg_Deckler
Community Champion
Community Champion

@wagga07 - Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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