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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
smc1906
Frequent Visitor

Two different scenarios in same Measure

Hi all

 

I currently have a measure (below) that counts the number of students transferring to a campus based on a number of filters. What I am looking to do (if possible) is to include a completely different filter, which is if the conditions of the first 4 filters are not met, there is another option which is (Iberia_Students[Re-enrolment]="Internal Transfer". This filter is completely independent of the first 4, however, so would essentially need to ignore them. The reason for this is the campuses having different ways of recording transfers, and I'd like them all to appear in the same column on the matrix.

 

Is there a way I can do that?

 

22/23 Sep Transfers = CALCULATE(COUNT('Iberia_Students'[txtSchoolID]),
USERELATIONSHIP(Iberia_Students[Campus], Iberia_Schools[SchoolCampusCode]),
USERELATIONSHIP(Iberia_Students[intEnrolmentNCYear]Iberia_Grades[GradeCode]),
FILTER('Iberia_Students',[intEnrolmentSchoolYear]=2022
&& 'Iberia_Students'[txtEnrolmentDate].[MonthNo]=9
&& 'Iberia_Students'[txtOfferType]="Transfer In"
&& 'Iberia_Students'[txtAdmissionStatus]="Accepted"))
 
Thank you!
1 ACCEPTED SOLUTION
johnt75
Super User
Super User

There's a couple of ways to accomplish this. The cleanest way may be to create separate measures to count the students using the separate filter conditions then combine them into a third measure, by simple addition, which you use on a visual.

Alternatively, you could wrap your existing filter conditions inside parentheses and add an or condition with your internal transfer filter.

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

There's a couple of ways to accomplish this. The cleanest way may be to create separate measures to count the students using the separate filter conditions then combine them into a third measure, by simple addition, which you use on a visual.

Alternatively, you could wrap your existing filter conditions inside parentheses and add an or condition with your internal transfer filter.

Thank you very much! The two separate measures, combined with a third, worked perfectly!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.