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

Visual filters messing up Calculations

I have two tables that have visual-level filters on the same field (candidate stage/application status).

 

Example 2.png

 

  1. One table summarizes open applications by filtering on any application that is "Under Review".

    Example 3.PNG
  2. The other table is a collection of Total Applications submitted and contains a measure that calculates what percentage of those applications were hired.

    Example 4.PNG

 

Because they both rely on Candidate Stage ("Application status"), when I click on one table, it incorrectly calculates.

 

Example.png

 

The intended effect should be 0's across the board for Total Hired and & % Hired because the table being triggered is a collection of Applications still Under Review/Open.

 

Thoughts?

1 ACCEPTED SOLUTION
v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please use the following measure for %hired:

 

% Hired =
CALCULATE ( COUNTROWS ( Sheet1 ), Sheet1[Candidate Stage] = "Hired" )
    / CALCULATE (
        COUNTROWS ( Sheet1 ),
        FILTER (
            ALLSELECTED ( Sheet1 ),
            Sheet1[Source of Hire] = MAX ( Sheet1[Source of Hire] )
        )
    )

 

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

 

Best Regards,

Dedmon Dai

View solution in original post

2 REPLIES 2
v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please use the following measure for %hired:

 

% Hired =
CALCULATE ( COUNTROWS ( Sheet1 ), Sheet1[Candidate Stage] = "Hired" )
    / CALCULATE (
        COUNTROWS ( Sheet1 ),
        FILTER (
            ALLSELECTED ( Sheet1 ),
            Sheet1[Source of Hire] = MAX ( Sheet1[Source of Hire] )
        )
    )

 

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

 

Best Regards,

Dedmon Dai

Hi @Anonymous,

 

but the visual filter only filters the selected country.

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.