Forum Discussion

mm5308's avatar
mm5308
Helper I
3 years ago
Solved

Custom Stepped Layout??

Not sure if what I want to do is even possible...if so, it's definitely beyond my capabilities.   I'm trying to create a stepped-layout matrix with a few caveats: Caveat 1: Header rows Caveat 2:...
  • mm5308's avatar
    mm5308
    3 years ago

    After much testing, I decided not to use Greg_Deckler's MM3TRR measure for this specific issue. MM3TRR allows for using different aggregations (sum, average, min, max) at each different subtotal level. While the measure is clearly very handy for creating that type of custom subtotals, it's not the feature I needed for this issue.

     

    My custom subtotals all needed to be sums. The wrinkle came in because I needed to, for lack of a better term, "pick and choose" which line items should be included in each subtotal in the first place - based on a combination of values from two different fields, not only one.

     

    In the end, all I had to do was create a custom field on my fact table concatenating the two target fields with a delimiter, then reference that concatenated field in my structure table instead of each field separately.

     

    If anyone's interested in knowing more details, tag me and I'll share. I'm still thankful to Greg because his suggestion set me on the path of thinking about the problem from a different lens, which ultimately led to finding and correcting the flaw.