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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Rob_Alexander
New Member

How to filter ID's 'sometimes'

Hi all,

 

I can't get through something I need. The issue is that I have an amount of people doing a subcourse of a Master. But sometimes, they also appear in the row with 'blanks'. For instance my summarized values are:

 

 2020
Master Business Administration4
<Blank>3
Course A1
Course B2

 

When you look at the individuals, the systems spits out some irregularities:

Student IDCourseInflux
101<Blank>1
101Course A1
102<Blank>1
102Course B1
103<Blank>1
104Course B1

 

So 101 is known as a <Blank> and as Course A. On the total level of the Master I made a Distinctcount. This works fine. But: I want the students that have a subcourse to be subtracted from the Total in <Blank>. So in this case with the individuals the total of <Blank> should be 1 because only ID 103 should count. 101 and 102 are in Courses A and B and should not be counted as a <Blank>.

 

So what I would need is:

 2020
Master Business Administration4
<Blank>1
Course A1
Course B2

 

Please help...

 

Best, Rob

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@Rob_Alexander , try a measure like

sumx(Table,if(isblank(max([Course])),1,distinctcount(Table[Student ID]))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Too bad, it does not work. I had to make it into a countx, but I get that the Blanks and the Courses are added up in the total. So in this example it gives me:

 

 2020
Master Business Administration6
<Blank>3
Course A1
Course B2

Helpful resources

Announcements
ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.