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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Add a measure as a column into a matrix

My table where I have the data is like this:

Product IDCategoryAisle movementsFlag
1CarrotBefore movements1
1CarrotTo left1
1CarrotRemoved0
1CarrotFrom left-1
2ChilliBefore movements1
2ChilliRemoved-1

 

I simply would like to make a matrix that would take Product Category as rows, Aisle movement as columns and sum of flag as matrix. Then I would like to calculate (sum of flags that are < 0) / (sum of before movements) to see how much % of the products have moved away from their previous position. I would want this as 1 single column added at the end of the matrix:

Product CategoryBefore movementsTo leftFrom leftRemovedTotalMoved %
Carrot11-101=-1/1 = -100%
Chilli100-10= -1/ 1 = -100%

 

I have written a measure for this:

Moved % = calculate(sum(tbl[Flag]), tbl[Flag] < 0) / CALCULATE(SUM(tbl[Flag]), tbl[Aisle movements] = "Before movements")
But when I added this to the matrix, it also shows as other columns instead of one single column at the end. How do I switch those columns off?
 
Thank you

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , seem like you are looking for Hybrid Display

 

if you are looking for a Hybrid display with Matrix Column and measure
https://community.powerbi.com/t5/Community-Blog/Creating-a-custom-or-hybrid-matrix-in-PowerBI/ba-p/1354591
https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/963588#M428

vote for Hybrid Table
https://ideas.powerbi.com/ideas/idea/?ideaid=9bc32b23-1eb1-4e74-8b34-349887b37ebc

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , seem like you are looking for Hybrid Display

 

if you are looking for a Hybrid display with Matrix Column and measure
https://community.powerbi.com/t5/Community-Blog/Creating-a-custom-or-hybrid-matrix-in-PowerBI/ba-p/1354591
https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/963588#M428

vote for Hybrid Table
https://ideas.powerbi.com/ideas/idea/?ideaid=9bc32b23-1eb1-4e74-8b34-349887b37ebc

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank you. it seems like what I'm looking for 🙂

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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