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
ngct1112
Post Patron
Post Patron

DAX(Add column) - Función MAX con Filtro

Hola a todos, estoy tratando de agregar una columna DAX para averiguar el valor MAX entre pocas columnas, mientras tanto, menos que el valor de línea base.

BaseABC MAX_R
107912 9
13101211 12
15141820 14
19171325 17

Línea 1 en la columna MAX, "9" es el valor más grande entre A, B, C y <10

Estoy probando esta fórmula, pero no el éxito. ¿Me das un consejo?

MAX_R = 
VAR _list = {
    ('table'[A]),
    ('table'[B]),
    ('table'[C])}
return
MAXX(FILTER(_list.[value]<'table'[Baseline]))



1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ngct1112 , Probar como

Column MAX_R = 
maxx(Filter(Union(Row("A",'Table'[A]),Row("A",'Table'[B]),Row("A",'Table'[C])),[A] <=[Baseline]),[A])

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@ngct1112 , Probar como

Column MAX_R = 
maxx(Filter(Union(Row("A",'Table'[A]),Row("A",'Table'[B]),Row("A",'Table'[C])),[A] <=[Baseline]),[A])

@amitchandak Thanks so much for your soluction which is working in my model!

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.