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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
davidibarrag
Helper I
Helper I

Select the max value from two columns by row and then use those values to make antoher measure

Hello,
Can somebody help me with the following problem.
I have two value columns that I need to compare them row by row to get the max value from the two columns from each row. Then multiply it, whether the max value is from those two columns, for the values in another column (a third column). 
For Example:

Column A  Column B Max Value Column C Multiplication

1                3               3               6                3*6

3                5               5               4                5*4

6                2               6               7                6*7

1                6               6               9                6*9

2                1               2               10              2*10

 

Thank you so much.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @davidibarrag ,

 

Try these steps:

 

Add new column with this formula:

Capture4.PNG

 

Column = MAX([A],[B])

A and B are the name of my Columns 

I get output as follows:

Capture67.PNG

 

Than use this measure for multiplication 

 

Measure 3 = 
SUM('Table (2)'[Column]) * SUM('Table (2)'[C])

my output:

Capture 8.PNG

 

Let me know if this works

Thanks,

Tejaswi

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

HI @davidibarrag ,

 

Try these steps:

 

Add new column with this formula:

Capture4.PNG

 

Column = MAX([A],[B])

A and B are the name of my Columns 

I get output as follows:

Capture67.PNG

 

Than use this measure for multiplication 

 

Measure 3 = 
SUM('Table (2)'[Column]) * SUM('Table (2)'[C])

my output:

Capture 8.PNG

 

Let me know if this works

Thanks,

Tejaswi

 

Thanks a lot it worked. 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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