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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
jennab8268
Frequent Visitor

Drill Through with Multiple Measures

I am working on a report that I would like to drill through regarding employee turnover. My measure looks like this:

 

Departing Employees = CALCULATE(DISTINCTCOUNT('TableName'[Employee Name]), filter('TableName, 'TableName'[Termination Date] >=FIRSTDATE('Date'[Date]) && 'TableName'[Termination Date]<=LASTDATE('Date'[Date])))

 

This is a measure that calculates the amount of departing employees in the company in the slicer selected date timeframe. There is no relationship between Date Table and "TableName"

 

An additional measure that I cannot drill through is:

 

Voluntary Terms =

CALCULATE(

    [Departing Employees],

    KEEPFILTERS('TableName'[Termination Reason = "Voluntary")

)

1 REPLY 1
v-xiandat-msft
Community Support
Community Support

Hi @jennab8268 ,

Your existing measure calculates the number of departing employees within the selected date range. It’s a valuable metric to track turnover.However, since there’s no direct relationship between the Date Table and “TableName,” you might encounter limitations when trying to drill through.To improve drill-through capabilities, consider creating a bridge table that connects the Date Table and “TableName.” This bridge table can hold unique combinations of dates and employee IDs.

Voluntary Terms

 You can try to create a calculate column:

IsVoluntaryTermination = 'TableName'[Termination Reason] = "Voluntary"

Then modify your “Voluntary Terms” measure:

Voluntary Terms =
CALCULATE(
    [Departing Employees],
    'TableName'[IsVoluntaryTermination] = TRUE()
)

Best Regards,

Xianda Tang

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

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.