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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
claret_mug
Frequent Visitor

using OR in measures

Hello

I have the following measure that calculates the number of students who have made progress. For the 'Entry Grade Mapping' I want to include students if they are "BTEC only" or " Mixed BTEC and A-Levels" but I am not sure how to write this. Can anyone help? Thank you very much

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" )
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @claret_mug ,

 

Check the formula below. "&&" as "and", "||" as "or".

BTEC + Progression all years =
CALCULATE (
    [Total students],
    FILTER (
        'Table1',
        '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"
            || 'Table1'[Entry Qualification Mapping] = "Mixed BTEC and A-Levels" )
    )
)

 

Best Regards,

Jay

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @claret_mug ,

 

Check the formula below. "&&" as "and", "||" as "or".

BTEC + Progression all years =
CALCULATE (
    [Total students],
    FILTER (
        'Table1',
        '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"
            || 'Table1'[Entry Qualification Mapping] = "Mixed BTEC and A-Levels" )
    )
)

 

Best Regards,

Jay

FrankAT
Community Champion
Community Champion

Hi @claret_mug 

you can use

  1. the double pipe sign '||', can be used as often as you need
  2. the function OR(). The OR() function accepts only 2 arguments.

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

amitchandak
Super User
Super User

@claret_mug , Not very clear with formula

Or can be like

 

Table1[Entry Qualification Mapping]="BTEC only" || Table1[Entry Qualification Mapping]="Mixture of BTEC and A-Levels"

 

OR( Table1[Entry Qualification Mapping]="BTEC only" , Table1[Entry Qualification Mapping]="Mixture of BTEC and A-Levels")

 

or use in

 

Table1[Entry Qualification Mapping] in {"BTEC" ,"Mixture of BTEC and A-Levels"}

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.