Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

How to group/classify measures segmentation

I have looked at a couple of options to accomplish what I am looking for but not sure I follow the other solutions.  Below is the layout I am looking for in my matrix.  All I have is a single transaction table with all the sales and cost transactions (GL Ledger).  Not ideal but out of my control.  

 

I have created all the measures to calculate daily, current year, previous year and Month to Date sales and GP.   However in order to place them in rows based on the type of measure they are eg. Sales, GP, or GP%, I need a way to classify or group the measures.  Unlike segmentation where I could filter on a range of values without a relationship, my measure groups are arbitrary.  

 

Hope this is enough information.

 

Peter

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Anonymous 

    Not very clear with text description, can you provide a sample table and an expected output matrix.

     

    Regards
    Paul

    • peterpaasch's avatar
      peterpaasch
      Regular Visitor

      The data really isn't the issue.  My measures are Sales_MTD, Sales_YTD, GrossProfit$_Daily, GrossProfit%_Monthly etc

       

      To get the Pivot I posted I need to label Sales calculations as sales, Gross Profit as GP, and Gross Profit % as GP%.  The segmentation patterns seem to work with ranges.  

       

      AccountDivisionBranchDepartmentAccount TypeDateAmount
      7800MWCGADPartsSales6/1/2020$1,000.00
      5600MWCGADPartsCOGS6/1/2020$500.00
      7800MWCGADServiceSales7/1/2020$1,000.00
      5600MWCGADServiceCOGS7/1/2020$500.00
      7802MWCGADNEWSales5/1/2020$55,000.00
      7802MWCGADNEWSales5/1/2019$12,000.00
      5601MWCGADUSEDCogs5/1/2019$35,000.00
      5601MWCGADUSEDCogs7/1/2020$23,000.00
    • peterpaasch's avatar
      peterpaasch
      Regular Visitor

      I posted a sample set of data.  I have calculated measures table that uses this data to calculate Total_Daily_Sales, Total_COGS and Gross Profit.  When added to a matrix with Division and Branch as rows and Date as Column everything looks good and calculates correctly for this year, month, Same day last year, previous year ect.  The problem is with all the measures they don't cleanly fit on screen.  

       

      The layout I shared in the original post would move specific measures into additional rows.  I have tried to add these additional rows to a config table but I haven't been able to get other DAX examples to work correctly.