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
HPauwelyn
Frequent Visitor

Show items in a list that are not listed in a table

I've a list of users and the all dates when they're logged on. Example below:

User IDLogin date (MM/DD/YYYY)
109/30/2020
110/02/2020
110/03/2020
110/04/2020
210/05/2020
210/06/2020
309/30/2020

 

I've also a list with 3 users in it named A, B and C with respectively IDs 1, 2 and 3. Now I want a list with all users that haven't signed on in september. The result of that list must only be user with ID 2. That filter must be depended on a slicer in the report itself. So if the user select october, the result must only be user with ID 3.

 

How could I do that?

1 ACCEPTED SOLUTION

Hi @HPauwelyn 

You may try my way build a Calendar as a Slicer and build a Measure.

Slicer = CALENDARAUTO()
Measure = 
Var _Sel = SELECTEDVALUE ( Slicer[Date].[MonthNo] )
VAR _A =
    CALCULATE (
        MAX ( 'Table'[User ID] ),
        FILTER (
            'Table',
            'Table'[Login date (MM/DD/YYYY)].[MonthNo]
                = _Sel
        )
    )
RETURN
    IF ( _A = BLANK (), 1, 0 )

Build a table visual by ID column and drag Measure into Filter set showing items when the value equal to 1.

 Result is as below.

1.png

You can download the pbix file from this link: Show items in a list that are not listed in a table

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@HPauwelyn , Assuming sep is last month with time intelligence and date calendar

 

last = if( isblank(CALCULATE(count(Table[user ID]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))),1, blank())

 

Plot this iwth user id you will get the result

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

See if my webinar on Time Intelligence can help: https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-Y...


Appreciate your Kudos.

It didn't work when the month is august or earlier. I also need that data and it's not 100% trustworthy.

Hi @HPauwelyn 

You may try my way build a Calendar as a Slicer and build a Measure.

Slicer = CALENDARAUTO()
Measure = 
Var _Sel = SELECTEDVALUE ( Slicer[Date].[MonthNo] )
VAR _A =
    CALCULATE (
        MAX ( 'Table'[User ID] ),
        FILTER (
            'Table',
            'Table'[Login date (MM/DD/YYYY)].[MonthNo]
                = _Sel
        )
    )
RETURN
    IF ( _A = BLANK (), 1, 0 )

Build a table visual by ID column and drag Measure into Filter set showing items when the value equal to 1.

 Result is as below.

1.png

You can download the pbix file from this link: Show items in a list that are not listed in a table

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

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.