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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.