cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
SonicYouth
New Member

How to return list of remaining (missing) values per month?

My goal is to display a list of employees that do not have a corresponding record (i.e. have not completed monthly task).

 

In one table, I have the records with employee name, completed task, date completed, etc. as so

EmployeeTaskMonth
A1100January
B1300January
B1200February
C1400February
D1500February

 

The second table is a master list of all employees,

Employee
A
B
C
D
E

 

How can I return a list of employees that have not done the monthly task per month? For example, for January, employee C,D, and E have not completed a task; and for February, employee A and E.  I've tried the EXCEPT function but was not able to incorporate a month slicer to differentiate the months; it compares the entire list from the first table with the second table (leaving only employee E remaining).

 

Thank you for any help.

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @SonicYouth ,

 

Here are the steps you can follow:

1. Create measure.

Measure =
var _select=SELECTEDVALUE('Table1'[Month])
var _column=SELECTCOLUMNS(FILTER('Table1','Table1'[Month]=_select),"em",'Table1'[Employee])
return
CONCATENATEX(
    FILTER(ALL(Table2),
    NOT('Table2'[Employee]) in  _column),'Table2'[Employee],"-")

2. Result:

vyangliumsft_0-1694509857272.png

 

vyangliumsft_1-1694509857272.png

 

Best Regards,

Liu Yang

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

2 REPLIES 2
v-yangliu-msft
Community Support
Community Support

Hi  @SonicYouth ,

 

Here are the steps you can follow:

1. Create measure.

Measure =
var _select=SELECTEDVALUE('Table1'[Month])
var _column=SELECTCOLUMNS(FILTER('Table1','Table1'[Month]=_select),"em",'Table1'[Employee])
return
CONCATENATEX(
    FILTER(ALL(Table2),
    NOT('Table2'[Employee]) in  _column),'Table2'[Employee],"-")

2. Result:

vyangliumsft_0-1694509857272.png

 

vyangliumsft_1-1694509857272.png

 

Best Regards,

Liu Yang

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

sjoerdvn
Resolver III
Resolver III

create a measure, something like this:
# task = COUNTROWS(your_task_table) + 0

Now create a visual (list or grid), drag in month and employee columns
add a filter on the visual with the measure,  [# task] is 0 

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors