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

usando OR en una medida

Hola

Tengo la siguiente medida que calcula el número de estudiantes que han progresado. Para el 'Entry Grade Mapping' quiero incluir a los estudiantes si son"Sólo BTEC" o "BTEC y niveles A mixtos" pero no estoy seguro de cómo escribir esto. ¿Alguien puede ayudar? Muchas gracias

BTEC + Progreso todos los años - CALCULATE ([Total de estudiantes], 'Table1' [Indicador de aprovisionamiento colaborativo]-"No colaborativa", 'Tabla1' [Longitud del curso 1 año o menos]"No"No", 'Tabla1' [Nivel de programa]-"No UG", 'Table1' [Modo de curso (FT / PT)] -" Tiempo completo ", 'Tabla1' [Ruta de entrada] ?" UCAS / GTTR ", 'Table1' [Residencia de la UE en el extranjero] Tabla1 [Asignación de calificación de entrada] "Sólo BTEC" )
1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@claret_mug quizás:

BTEC + Progression all years =
CALCULATE (
    [Total students],
    'Table1'[Collaborative Provision Indicator] = "Non-collaborative",
    'Table1'[Course length 1 year or less] = "No",
    'Table1'[Program level] = "No UG ",
    'Table1'[Course Mode (FT / PT)] = " Full Time ",
    'Table1'[Entry Route] = " UCAS / GTTR ",
    'Table1'[EU Overseas Home Residence] = " Home ",
    OR(Table1[Entry Qualification Mapping] = "BTEC Only", Table1[Entry Qualification Mapping] = "Mixed BTEC and A-Levels")
)


Si no es así, consulte esta publicación sobre cómo obtener respuesta a su pregunta rápidamente: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

Las partes más importantes son:
1. Datos de muestra como texto, utilice la herramienta de tabla en la barra de edición
2. Salida esperada de los datos de muestra
3. Explicación en palabras de cómo obtener de 1. a 2.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
Fowmy
Super User
Super User

@claret_mug

Tratar:

BTEC + Progression all years = 
CALCULATE (
    [Total students], 
    'Table1' [Collaborative Provision Indicator]="Non-collaborative", 
    'Table1' [Course length 1 year or less]="No", 
    'Table1' [Program level]="No UG ", 
    'Table1' [Course Mode (FT / PT)] =" Full Time ", 
    'Table1' [Entry Route] =" UCAS / GTTR ", 
    'Table1' [EU Overseas Home Residence] =" Home ", 
     Table1 [Entry Qualification Mapping] ="BTEC only" || AND([Entry Qualification Mapping] ="Mixed BTEC","A-Levels") 
)   

________________________

Si mi respuesta fue útil, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla

Haga clic en el icono Thumbs-Up si le gusta esta respuesta 🙂

Youtube Linkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Greg_Deckler
Super User
Super User

@claret_mug quizás:

BTEC + Progression all years =
CALCULATE (
    [Total students],
    'Table1'[Collaborative Provision Indicator] = "Non-collaborative",
    'Table1'[Course length 1 year or less] = "No",
    'Table1'[Program level] = "No UG ",
    'Table1'[Course Mode (FT / PT)] = " Full Time ",
    'Table1'[Entry Route] = " UCAS / GTTR ",
    'Table1'[EU Overseas Home Residence] = " Home ",
    OR(Table1[Entry Qualification Mapping] = "BTEC Only", Table1[Entry Qualification Mapping] = "Mixed BTEC and A-Levels")
)


Si no es así, consulte esta publicación sobre cómo obtener respuesta a su pregunta rápidamente: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

Las partes más importantes son:
1. Datos de muestra como texto, utilice la herramienta de tabla en la barra de edición
2. Salida esperada de los datos de muestra
3. Explicación en palabras de cómo obtener de 1. a 2.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler muchas gracias, esto ha funcionado. Estaba poniendo el "OR" en el lugar equivocado cuando lo intenté. Gracias por salvarme de una tarde de dolor 🙂

@claret_mug - No hay problema. @Fowmy la solución debería funcionar también. Tubo doble ( ) es un operador de quirófano y probablemente funciona como si estuviera esperando la función O para trabajar!


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.