Forum Discussion

wagga07's avatar
wagga07
Frequent Visitor
5 years ago

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