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
aktripathi2506
Helper IV
Helper IV

Measure to display the content of column

 

Please consider the following scenario:

I have 3 table they are related to each other by many to one relationship.

I have 3 slicer,

Week

Year

Group

 

Now I have a measure with the following formula:

 

 

(CALCULATE(COUNT(Table1[Emp ID]),FILTER(ALLEXCEPT(Table2,Table2[Year],Table3[Group]),RELATED(Table1[Emp ID]))) - COUNT(Table1[Emp ID]) )

 

To get the number of employee out of total employee who are not present in the week, year and group name, I chose from the slicer.

 

For example from group A, for year 2016 and week 38 how many employee are present.

 

And this formula is working perfectly fine.

 

The only thing which I am trying now and wondering if that is possible or not is:

 

If I can get the Emp ID of the employee rather than just the count of employee.

2 REPLIES 2
v-ljerr-msft
Employee
Employee

@aktripathi2506


The only thing which I am trying now and wondering if that is possible or not is:

If I can get the Emp ID of the employee rather than just the count of employee.


Measure operates on aggregations of data defined by the current context, and returns a scalar value. So using a Measure to display the Emp IDs instead of the count of employee is not possible.

 

Regards

CheenuSing
Community Champion
Community Champion

@aktripathi2506

 

Can you please share data model, sample data and output expected to find a solution

 

Cheers

 

CheenuSing

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!

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.