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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ckausihan_12
Helper I
Helper I

Dynamic table comparison

Hi, I have two tables, table 1 contains users site access data and table 2 contains a list of all users in the organisation (please see below). I am trying to create a page which will show me a list of all users who haven't accessed a site for a given date. For example, if I select 22/04/2020, I want to see that studentBstudentCstudentD and studentE didn't access any sites. I can only get it to show users who have made no access overall, not on a date basis. 

 

Table 1 gets new data appended on a daily basis. Table 2 is fixed (a total of 1327 users). 

 

Table 1: 

Username 

Site 

Date 

studentA 

maths 

22/04/2020 

studentB 

english 

23/04/2020 

studentA 

english 

23/04/2020 

studentC 

maths 

24/04/2020 

studentA 

science 

24/04/2020 

 

Table 2: 

ID 

Username 

1 

studentA 

2 

studentB 

3 

studentC 

4 

studentD 

5 

studentD 

6 

studentE 

1 ACCEPTED SOLUTION
VijayP
Super User
Super User

@ckausihan_12 

 

To Get Time intelligence you need to have date table. With Date Table you can drill down who are Visitors and Non Visitors.

I am attaching PBIX File here. you can go thru to understand the Table

 

I have created a Measure showing number of Visitors  SUM(Visitor ID) and then calculated Non Visitors based on total Visits = 0

I think PBIX File will help  you a lot.  Please Clik on this LINK

If you find this as Solution please mark this as Solution and Share your Kudos.

Also you cant Watch my Power BI and Excel Videos at www.youtube.com/perepavijay

Regards

Vijay Perepa




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

If Table 2, is master table then have a measure

 

Count = count(Table[username])+0

 

And now filter for count =0 (Visual filter). Also, use this option, if needed

ShowItemwithoutdata.JPG

 

VijayP
Super User
Super User

@ckausihan_12 

 

To Get Time intelligence you need to have date table. With Date Table you can drill down who are Visitors and Non Visitors.

I am attaching PBIX File here. you can go thru to understand the Table

 

I have created a Measure showing number of Visitors  SUM(Visitor ID) and then calculated Non Visitors based on total Visits = 0

I think PBIX File will help  you a lot.  Please Clik on this LINK

If you find this as Solution please mark this as Solution and Share your Kudos.

Also you cant Watch my Power BI and Excel Videos at www.youtube.com/perepavijay

Regards

Vijay Perepa




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Hi! Thank you for getting back to me. Will this still work if Tabl 1 has no user ID?

@ckausihan_12 

Yes Table1 Has UserID it works, if you look at the PBIX file which i shared has a solution. Thanks




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


I am trying to replicate your solution with my tables. However, my access Table doesn't have user ID.

USER ID will create a better 1 to many relation ship and your solution will be fine. Create index column in your Student Table and then use that index number against each student in Main transaction table. then you can get answer easily




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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