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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
jarwest
Helper II
Helper II

Dealing With Date Ranges Separate from my Date Table

Hey all,

I've run into a small problem with one of my reports. The data denotes when a kid has in school suspension, for how many days, and the reason. The end result has each day as a row, with the number of kids for each reason present. The end result should look something like this table below.

DateTardinessFightingBullying
8/2/2024202
8/3/2024121
8/4/2024220
8/5/2024211
8/6/2024101

 

I get the underlying data by kid and the number of days then have detention. I have 2 tables, one of which is a regular Date table created using CALENDAR() and from a table containing the data by child. The data I have looks something like this table below.

 

NameStartDateEndDateReason
Jimmy8/1/20248/7/2024Tardiness
Tommy8/4/20248/5/2024Tardiness
Rosie8/3/20248/5/2024Fighting
Julie8/3/20248/4/2024Fighting
Bobby8/1/20248/2/2024Tardiness
Jerry8/1/20248/2/2024Bullying
Mikey8/1/20248/3/2024Bullying
Evie8/5/20248/11/2024Bullying

So for example, Tommy has suspension on 8/4/2024 and 8/5/2024, so the suspensions for Tardiness go up by 1 on those days. The only other kid in suspension for Tardiness those days is Jimmy, so there's a 2 for those 2 dates.

My date table looks something like this, just a straight column with dates

Date
8/2/2024
8/3/2024
8/4/2024
8/5/2024
8/6/2024

 

I need to find a way to join the date table and suspension table so that each row is a date like the table up top, and so that the counts per suspension match up.

 

Let me know if more detail is needed regarding this issue. Any and all help is appreciated!

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

I need to find a way to join the date table and suspension table

Not really.  Leave them disconnected. Use a measure to calculate the intersection.

 

lbendlin_0-1728343040785.png

 

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

I need to find a way to join the date table and suspension table

Not really.  Leave them disconnected. Use a measure to calculate the intersection.

 

lbendlin_0-1728343040785.png

 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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