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
Anonymous
Not applicable

Matrix Filtered by Distinct Counts Exports No Data

Greetings,

 

I have attached a simplified PBIX which demonstrates an issue I have run into.  The goal is to have a matrix which lists products worked on by more than one employee, "overlap".  I was able to achieve this in the blue matrix (closest to the bottom).  In order to achieve this I used this measure:

Overlap =
CALCULATE( DISTINCTCOUNT( 'Example Table'[Employee] ) ,
FILTER( 'Example Table' ,
[Σ Hours] <> 0 ) )


and filtered the matrix on the measure having a value greater than 1.

 

The issue is when I go to export the blue matrix to excel, the export contains no data.  This issue is encountered in both desktop and service.  I believe the root of the issue is that the filter is only applied to the rows (products) in the matrix but is applied to both the rows and columns (employees) upon export.  With each employee having a DISTINCTCOUNT( employee) of 1 they are all excluded!

 

I also tried to create a calculated column but that removed the context of the month slicer. 

 

Any help or direction would be greatly appreciated as I have spent nearly half a day working this problem.

 

Thanks

Malcolm

PBIX Located Here 

SampleSample

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Yes, the solution was provied and can be found at the Power BI Link.

View solution in original post

Anonymous
Not applicable
3 REPLIES 3
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

Looks like this topic has already got the solution?

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Anonymous
Not applicable

Anonymous
Not applicable

Yes, the solution was provied and can be found at the Power BI Link.

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.