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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
bkunwor
New Member

Count Distinct after dropping duplicates

Scenario: A student_one can enroll in fall as full-time student and enroll in spring as part-time but when you report the total enrollment, he/she should be counted only once. A student_2 can enroll as full-time for both semesters.  He/she should be dropped for the spring semester for counting. I can simply use the distinct count DAX function to achieve this goal.

 

Student_one enrolls in fall as full-time and enrolls in spring as part-time.  He/she will be reported only as full-time for fall semester even though he/she enrolls as a part-time in the spring semester. Distinctcount dax function does not help anymore. 

 

Any idea how to fix this problem without actually dropping student duplicates by ID ? 

 

 

2 REPLIES 2
v-yingjl
Community Support
Community Support

Hi @bkunwor ,

Based on the description, not certain how did you define the full-time/part-time student in spring/fall and what did the table look like.

Perhaps you can consider sharing a sample data table or more details about this thread for further. Sample data and expected output would help tremendously.

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Anonymous
Not applicable

Hi @bkunwor 

 

It is a DAX question posted in Power Query section...and we can't get clear picture without sample data...you can read the post and provide more info

How to Get Your Question Answered Quickly - Microsoft Power BI Community

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.