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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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

 

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

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

 

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

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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors