Forum Discussion
Division based on 2 other values from different columns
Hi nicklabh
easiest approach is to create a new column in both tables which is the concatenation of Machine and Material # columns that would be a primary key i the dimension (lookup table) and will enable the creation of one to many relationship. Then youe measure would simply be
DivisionMeasure =
AVERAGEX ( TimeStudyRawDat, DIVIDE ( [Prices/HR], TimeStudyRawDat[Prices/HR] ) )
- nicklabh3 years agoNew Member
Hi tamerj1, thank you for your answer.
I have added the concate column and now it is relationship in 1 to many. However the formula is not producing the correct % calculation
- Completed ticket data table exist measure pieces/Hr for each line
- Timestudyraw data table exist pieces/Hr
Timestudyraw data table (64 pieces/hr)
Completed ticket data table (Average 40.5 pieces/hr)
Correct calcuation is 40.5/64 = 63%
However, the current calculation is
- tamerj13 years ago
Community Champion
Can please copy/paste the dax? It is not clear in the screenshot. Why do you need to use LOOKUPVALUE?
- nicklabh3 years agoNew Member
My apologies, I used the wrong data anyway.
Please see the following Dax:
It should be returning 67.5%, but it is returning 77.1%Completed ticket data:
Timestudydata: