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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
third_hicana
Helper IV
Helper IV

Calculate Distinct Values in a Column then Filter by another column with blanks

Hi. Seeking your help regarding how to calculate my date. I want to calculate the unique departments that have no value in FTE.
Below is my sample data.  My desired result is 2 because there are two departments that have no given value in Est FTE column.

How to do this in DAX? Thank you in advance for your help. 

 

third_hicana_0-1708668714971.png

 

1 ACCEPTED SOLUTION
tharunkumarRTK
Super User
Super User

@third_hicana 
countrows(calculatetable(values(Table[Department]), Table[Est FTE] > 0 ))

View solution in original post

3 REPLIES 3
third_hicana
Helper IV
Helper IV

Hi @tharunkumarRTK 

How can I calculate the number of departments with no FTE value but also check that no projects have no FTE value?

So my desired  result is 1 because Department 3 has no value in Project A and Project B.

There's no only 1 department that has no FTE value for all of the projects. Basically, I want to check how many departments that has no FTE value across all projects.

Thank you.

 

tharunkumarRTK
Super User
Super User

@third_hicana 
countrows(calculatetable(values(Table[Department]), Table[Est FTE] > 0 ))

@tharunkumarRTK 

 

Thank you very much for your help

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

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