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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

How to get Available Distinct Employee(Dimension) Vs Distinct Employee (Fact) comparison

Hi,

 

I have 2 tables:

Employee Dim
Training Fact

joining condition: employeeid

 

Employee Dim has the list of all the employees in the organization (220k) while in Training Fact can be a subset, where around 120k employeed have taken certain training. While I am trying to compare the number of total employee vs employee who has taken training, both the numbers are showing same (maybe due to the joins). Below is the number

rahulpaul5607_0-1661524140228.png

 

 

Unique User Total = COUNT(BU_Ext[employee_id])
Unique User = distinctCOUNT(SumTotal_Fact[Employee ID])
 
The number under the total is getting reduced to the number of matching employee with fact.
 
How can I resolve this??
1 ACCEPTED SOLUTION
Arul
Super User
Super User

@Anonymous ,

try this for Unique User Total,

Unique users = CALCULATE( COUNT(BU_Ext[employee_id]),ALL(BU_Ext))

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


View solution in original post

3 REPLIES 3
Anonymous
Not applicable

A page level filter was creating the issue. Thanks the dax above is working fine.

Anonymous
Not applicable

rahulpaul5607_0-1661528702683.png

The dax above is working fine with dummy data, not sure why it is not working with the real data. Have to take a look

Arul
Super User
Super User

@Anonymous ,

try this for Unique User Total,

Unique users = CALCULATE( COUNT(BU_Ext[employee_id]),ALL(BU_Ext))

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.