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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Dates and links

I have 4 tables, a users attendance which contains there attendance for an idividual date, a users table, a groups table which organises users into group, the can move between thoose during the year and a link table.

 

Trying to create a slicer, which will allow me to filter the attendance date to see attendance during a certain peroid of time and also filter the groups table, to give me context for group attendance on a particular day, depening if a user moves groups.

 

I tried creating a new field combining the attendance date (converted to format 20181019) and the User ID (which oriognally comes form Mongo so is a string, seporated by an _ e.g.20181019_abc123abc456789) to create a unqiue field to then match in this table, then created the users groups table by creating an entry for each day between the start and end date for the student, then creating the same unique ID as above to match.

 

This works but as the attendance table is around 25 million rows and the users groups table is around 300k to start, but changing as above increases the users groups table to around 76 million rows, which introduces a very high cardinality.

 

Is there a better way to achieved this? Given there must be a link between date and the student to the attendance table?


My structure is as follows:

Attendance Table

  • Attendance ID
  • User ID
  • Attendance Date
  • Present (Boolean)

Users table

  • User ID
  • User Name

Groups Table

  • Group ID
  • Group Name

Users Groups Table

  • User ID
  • Groups ID
  • Start Date
  • End Date

 

1 REPLY 1
kentyler
Solution Sage
Solution Sage

You might consider combing users / groups /user groups tables into one table that has one record for each day each user is in a specific group.

That would have the same "day" granularity as your attendance table and would make it easy to get the group attendance numbers for any given day.





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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