Forum Discussion
rishic
8 years agoFrequent Visitor
Nested Group by/Summarize with Divide
I have my base data something like this and finally would want to show a graph with sales_area and value highlighted in yellow.
The values are QtyperHour=divide(sum(qty),sum(tothours))
I have tried to use nested group up with divide, can someone pease share how to use nested group by/summarize with divide.
Hi rishic,
Actually, you don't need the function "Summarize". Please try out the formula below.
Measure = DIVIDE ( SUM ( Table1[Pur_quantity] ), SUMX ( VALUES ( 'Table1'[Tot_Hours_Spent] ), [Tot_Hours_Spent] ) )Best Regards,
Dale
1 Reply
- v-jiascu-msftMicrosoft Employee
Hi rishic,
Actually, you don't need the function "Summarize". Please try out the formula below.
Measure = DIVIDE ( SUM ( Table1[Pur_quantity] ), SUMX ( VALUES ( 'Table1'[Tot_Hours_Spent] ), [Tot_Hours_Spent] ) )Best Regards,
Dale