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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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...


Follow on LinkedIn
@ 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.