cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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!:
Mastering Power BI 2nd Edition

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!:
Mastering Power BI 2nd Edition

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!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors