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
yapurnico
Frequent Visitor

Function to compare Three measures and ghet the highest in terms of units

Dear community,

 

I'm creating a measure that shows the highest between other three measures. But it seems i'm using the wrong Function by using "IF" to compare the trhee measures and ghet the highest measure in terms of units becouse i´m getting a visualization error when i add it to a table whith other measures and columns.
Is there a better Function to compare Three measures and ghet the highest in terms of units??

 

This is my measure: 

IF(
   [CMC U.Vendidas30d_N2]>[CMC U.Vendidas60d_N2],
   IF(
      [CMC U.Vendidas30d_N2]>[CMC U.Vendidas90d_N2],
      [CMC U.Vendidas30d_N2],
      [CMC U.Vendidas90d_N2]
      )
      ,IF(
           [CMC U.Vendidas60d_N2]>[CMC U.Vendidas90d_N2],
           [CMC U.Vendidas60d_N2],
           [CMC U.Vendidas90d_N2]
          )
)
 
Thank´s for your time.

 

 

1 REPLY 1
Whitewater100
Solution Sage
Solution Sage

Hi: Note Table Constructors  {       }

 = MAXX(
               {
              [Measure 1], 
              [Measure 2], 
              [Measure 3]}
            , [Value]
                         )

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.

Top Solution Authors