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
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
v-tangjie-msft
Community Support
Community Support

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
v-tangjie-msft
Community Support
Community Support

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. 

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.