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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
seekrohit1
New Member

Filter a measure by another one

Below is the scenario:

1. Need to calculate the Total number of jobs from Jobs table which is connected to the Fact Table (one-to-many)

2. From the Fact table there is already a %measure <measure1> which is already caculated by using DAX.

3. Need to calculate the Total Number of Jobs where the %measure is less than 5%

seekrohit1_1-1678495947911.png

 

3 REPLIES 3
aditya0125
Resolver I
Resolver I

No of Jobs = Countx( filter(Value([JOB ID]), [Measure%] < .05 ), [JOB ID])
i think this will works.



Anonymous
Not applicable

Hi  @seekrohit1 ,

 

Here are the steps you can follow:

1. Create measure.

Measure 2 =
CALCULATE(
    DISTINCTCOUNT('Jobs Table'[JobID]),
   FILTER(ALL('Fact Table'),
    [Measure 1]<0.05))

2. Result:

vyangliumsft_0-1678946579044.png

 

Best Regards,

Liu Yang

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

amitchandak
Super User
Super User

@seekrohit1 ,

 

Countx( filter(Values(Jobs[JOB ID]), [%Measure] <.05 ), [JOB ID])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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