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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
DanielMedina
Regular Visitor

Distinct count with date parameter

Hello everyone! Hope you all are having a nice day.

I'm looking for some help with something that is stressing me a lot in the past few days.

 

So, what I'm trying to do is to get the amount of lives each person had to watch since their registration date, and then compare it to how many they really watched. It's for a engagement study I'm doing.

 

The table should look like this:

NameRegistration Date[A] lives streamed since registration date[A] lives watched[B] lives streamed since registration date[B] lives watched[C] lives streamed since registration date[C] lives watched
Peter23/08/2021322031
Jordan07/11/2016312031
Alisha25/10/2021302111
Mike21/06/2013302130

 

This is the table that I'm getting the info from:

Live NameDateLiveName
Live [A] - 04/12/202104/12/2021Live [A]Peter
Live [A] - 06/12/202106/12/2021Live [A]Peter
Live [A] - 12/12/202112/12/2021Live [A]Jordan
Live [B] - 16/03/202216/03/2022Live [B]Alisha
Live [B] - 24/04/202224/04/2022Live [B]Mike
Live [C] - 01/10/202101/10/2021Live [C]Alisha
Live [C] - 04/11/202104/11/2021Live [C]Peter
Live [C] - 01/09/202101/09/2021Live [C]Jordan


I'm using a one to many, crossfiltered relation between these tables.

 

If anyone knows how to get this to work and could spare some time to explain it to me, I'd really appreciate it!

Thanks in advance.

1 ACCEPTED SOLUTION

You will need to add another dimension table to deal with the blanks. Here is a sample implementation.

 

 

View solution in original post

4 REPLIES 4
lbendlin
Super User
Super User

Which table has the Registration Date information?  How does your data model look like?

Hello @lbendlin 
Sorry, I forgot about the table with the registration date. It's this one:

 

NameRegistration DateCategory
Peter23/08/2021Diamond
Jordan07/11/2016Gold
Alisha25/10/2021Diamond
Mike21/06/2013Silver

 

My data model is this:

DanielMedina_0-1651576226755.png

An one to many relation with "Reg" crossfiltering the "Table".

You will need to add another dimension table to deal with the blanks. Here is a sample implementation.

 

 

Thanks a lot @lbendlin !

It really helped me a lot.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors