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
arshadjehan1
New Member

Need to Filter my Matrix Data based on Measure Values

Hi everyone,

I have a matrix visual populated with data as given below:

arshadjehan1_0-1664708759272.png

Tenure in Months is a calculated column:

Tenure in Months = 'All Postings'[Tenure]*12
While %age is a measure:
%age of Tenure in Months =
VAR CurrentTotalTenure =  CALCULATE(
                                 [Total Tenure],
                                 ALLSELECTED('All Postings'[Batch])
                               )
VAR AllTotalTenure = CALCULATE(
                                 [Total Tenure],
                                 all('All Postings'[Post Type])
                               )
VAR Ratio = DIVIDE(CurrentTotalTenure,AllTotalTenure)
RETURN Ratio
I need help on following please:
1.    I want to add a filter mechanism, whereby I can filter those rows having 100%, > 80% or <80% value under %age column for different Post Types.
2.   I want to count number of employees having 100% tenure in any of the Post Types.
 
Looking for a timely response please.
Regards
 
1 REPLY 1
Greg_Deckler
Super User
Super User

@arshadjehan1 In general, to use a measure in that way, you need to use the Disconnected Table Trick as this article demonstrates: https://community.powerbi.com/t5/Community-Blog/Solving-Attendance-with-the-Disconnected-Table-Trick...


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.