Forum Discussion
DAX Conditional Formatting the maximum value for each column in a Matrix
- 4 years ago
Read about the difference between aggregators (SUM, MAX) and iterators (SUMX, MAXX). That will help you to decide when to apply which (very roughly aggregators work on columns while iterators work on rows).
Let me know when you have sorted your actual requirement out. The measure I provided is only one of many possible implementations (and a very simplistic one, too). It did work for your original request, but it's perfectly fine for requirements to change during prototyping.
Read about the difference between aggregators (SUM, MAX) and iterators (SUMX, MAXX). That will help you to decide when to apply which (very roughly aggregators work on columns while iterators work on rows).
Let me know when you have sorted your actual requirement out. The measure I provided is only one of many possible implementations (and a very simplistic one, too). It did work for your original request, but it's perfectly fine for requirements to change during prototyping.
I ended up using using a Reference of original SAP-DIRECT Table, then filtered down dates I wanted and used "Group By" in Power Query Editor, once I did that for EAM and GROUP, then I could Sum new columns by REVENUE and GP and that gave me the exact table I wanted.
From there your measure worked great. I could not figure out how to use MAX Aggregate with SUM of REV / GP, read everything I could find and my brain could not do it.
Anyway thank you for the guidance, it worked in the end!