cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cipriannsft
New Member

Calendar with daily counter of students placed

Hi everyone,

 

I'm very new to Power BI and wondered if anyone can help translating an Excel file into Power BI. I've got two tables, I'll call them  Students and Calendar. I need to show how many students are placed in a particular team on each day of the month. 

 

Student 

Student_nameTeam_name Start_date End_date
Student ATeam 104/08/202110/08/2021
Student BTeam 107/08/202109/08/2021
Student CTeam 206/08/202111/08/2021

 

Now I need to create a Power BI report that looks like below, each row is a placement and in the calendar section each number is a count of students in placement on that day. 

 05/08/202106/08/202107/08/202108/08/202109/08/202110/08/202111/08/2021etc
Team 11122210 
Team 20111111 

 

The calendar table has a column called Date:

Calendar = CALENDAR( DATE(2021,1,1), TODAY())

 

Now I'm trying to add a new column to the table that adds the number for each day but it doesn't seem to work:

StudentsPerDay= COUNTROWS(FILTER('Student', 'Student'[Start_date] >= 'Calendar'[Date] && 'Student'[End_date] <='Calendar'[Date]

 

The formula doesn't give any errors though no values are added where there should be values.

 

Any ideas?

 

Many many thanks!

1 REPLY 1
amitchandak
Super User
Super User

@cipriannsft , refer this blog or the attached file if that an help

How to divide/distribute values between start date or end date or count days across months/days: https://community.powerbi.com/t5/Community-Blog/How-to-divide-distribute-values-between-start-date-o...

 

 

The file is not on your data, attached after signature

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!

Helpful resources

Announcements
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Dev Camp Session 22 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!