Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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.  

 

peterpaasch77_0-1595252774676.png

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 4
V-pazhen-msft
Community Support
Community Support

@Anonymous 

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

 

Regards
Paul

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.

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.