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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
syasmin25
Helper V
Helper V

Counting ELA and MATH

I have an issue and am having trouble wrapping my head around it. I am trying to count students absent in English and Math classes. The issue here is the database places students absent per period on a row to row basis. I have created a sample here. The original one is over a million rows.tbruh.PNG
t_Calendar.PNG

 

I was wondering if there is any way I can create a column that counts number of students absent in MATH and ELA. I know I can do table. But I need to be looking more like the picture below (red font is where I want the calculation) and was wondering if someone could help.

3 REPLIES 3
Anonymous
Not applicable

Should your measure not be

DISTINCTCOUNT( Table[ID] )?

Best
D

Hi,

The solution is available in the other equally named post.

 

Br

HotChilli
Super User
Super User

The simplest way might be to drag 'School ID' on to a table visualisation twice.  Make one 'Don't Summarize' . Make the other 'Count'

Then expand the filter pane and drag Subject on to 'Add data fields here' then tick ELA and MATH in basic filtering.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.