Forum Discussion
Use a Matrix to Display Values - Divisor is Fixed
- 3 years ago
ConnieMaldonado , Try a measure like
calculate(Sum(Table[Qty]), filter(all(Table), Table[Item] = max(Table[Item Type]) ))
or
calculate(Sum(Table[Qty]), filter(all(Table [Item]), Table[Item] = max(Table[Item Type]) ))
ConnieMaldonado , Try a measure like
calculate(Sum(Table[Qty]), filter(all(Table), Table[Item] = max(Table[Item Type]) ))
or
calculate(Sum(Table[Qty]), filter(all(Table [Item]), Table[Item] = max(Table[Item Type]) ))
- ConnieMaldonado3 years ago
Responsive Resident
I'll give that a try tomorrow. Thanks for the response!
I was also thinking - what if I create a table using the summarize function that creates the sums as I need them, and then link back to the table or do a lookup to get the divisor. What do you think about that (if I can't get the measure to work)?
Thanks!
- ConnieMaldonado3 years ago
Responsive Resident
Almost there! Yay!
I was able to get Qty/Item to work for each of the Subtypes using:
Qty/Item =DIVIDE(sum('Sales Data'[Qty]),CALCULATE(SUM('Sales Data'[Qty]),FILTER(ALL('Sales Data'),'Sales Data'[Line Item] = MAX('Sales Data'[Type])&& 'Sales Data'[Subtype] = MAX('Sales Data'[Subtype]))))However, for the total, I need to sum the quantities. If I look at just the Divisor, I get the following: