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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
HJK
Frequent Visitor

can I create a measure column by arithmetic on each column?

Hi.

 

When a specific value is listed in multiple columns in Matrix visual, can I create a measure column by arithmetic on each column?

Take the below screenshot as an example

4000000 + 4010000 + 4020000 - 7010000 = Measure

 

HJK_0-1686271348160.png

 

 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @HJK ,

 

You can present it as a card visual object.

(1)We can create a column.

rank = RANKX('Table','Table'[CostElement],,ASC,Dense)

(2)We can create a measure.

Measure = 
var _1=CALCULATE(MAX('Table'[CostElement]),FILTER(ALL('Table'),'Table'[rank]=1))
var _2=CALCULATE(MAX('Table'[CostElement]),FILTER(ALL('Table'),'Table'[rank]=2))
var _3=CALCULATE(MAX('Table'[CostElement]),FILTER(ALL('Table'),'Table'[rank]=3))
var _4=CALCULATE(MAX('Table'[CostElement]),FILTER(ALL('Table'),'Table'[rank]=4))
return _1+_2+_3-_4

vtangjiemsft_0-1687155460348.png

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @HJK ,

 

You can present it as a card visual object.

(1)We can create a column.

rank = RANKX('Table','Table'[CostElement],,ASC,Dense)

(2)We can create a measure.

Measure = 
var _1=CALCULATE(MAX('Table'[CostElement]),FILTER(ALL('Table'),'Table'[rank]=1))
var _2=CALCULATE(MAX('Table'[CostElement]),FILTER(ALL('Table'),'Table'[rank]=2))
var _3=CALCULATE(MAX('Table'[CostElement]),FILTER(ALL('Table'),'Table'[rank]=3))
var _4=CALCULATE(MAX('Table'[CostElement]),FILTER(ALL('Table'),'Table'[rank]=4))
return _1+_2+_3-_4

vtangjiemsft_0-1687155460348.png

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

amitchandak
Super User
Super User

@HJK , seem like you need 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/1...
https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/...

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.