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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

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
Anonymous
Not applicable

@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
amitchandak
Super User
Super User

@Anonymous , refer is these can help

column header grouping https://www.daxpatterns.com/dynamic-segmentation/
https://community.powerbi.com/t5/Desktop/Matrix-Display-Values-above-Columns/td-p/256905
https://community.powerbi.com/t5/Desktop/grouping-measure-results/td-p/456795

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors