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 September 15. Request your voucher.

Reply
AppleMan
Helper III
Helper III

Value for one row in table only shows with certain criteria

Hi,

 

I have not been able to find a way to get this to work successfully.

 

Lets say I have 10 jobs in the system. Each job can have different operation numbers. Most will be 10,30,40,50 for this example.

For the sake of explaining lets say 8 jobs are setup this way.

However some jobs will have an operation 20. Lets say 2 jobs are setup this way out of the 10.

 

I have basic data that has a row for each labor entry on the jobs. This could be 0 for a job, or 20, it depends on how involved the job was.

 

I have a table that has 4 columns. One directly from the table (job number) and 3 measures that show different values A, B, and C. Those have filters placed on them at a measure level. Measure A has a filter that says the operation to look at when calculating need to be = 10. B and C must have operation = 20.

What I need to do is have the first column, job number, ONLY show jobs that have operation 20 as one of its operations. To accomplish this I set a visual level filter to look for operation = 20. 

 

This method shows the correct jobs in the table. But breaks measure A so its blank, since it cant calculate for measure 10 when the visual is filtered to be the rows that only have operation 20.

 

Example Data:

JobOperationTotalTestedScrapped
A1060500
A2050500
A2050100
B102002000
B105000
B2020015020
C101001000

 

Example Result:

JobTotalTestedScrapped
A60600
B25015020

 

This removes job C since it does not have an operation 20 assigned to it. 

 

Measures:

The job column comes directly from the data and is not a measure.

 

Total:

Right now with a visual level filter of operation = 20, the job column, Tested, and Scrapped column are correct since they all look for operation 20. The A column is not correct with the below measure since it cant get to operation 10:

Total = CALCULATE(
    SUM(Test[TestQty]),
    Test[Operation] = 10
)

 

Is there a way to write this measure so it will ignore the visual level filter, and still look for operation 10?

I tried things like removefilters, allexcept, but none seem to work correctly. 

 

Tested:

Tested = CALCULATE(
    SUM(Test[LaborQty]),
    Test[Operation] = 20
)
 

Scrapped:

Scrapped = CALCULATE(
    SUM(Test[ScrapQty]),
    Test[Operation] = 20
)
 
I either need to adjust all measures to produce the correct result. Or adjust the total measure as described above.
 
Any suggestions?
1 ACCEPTED SOLUTION
Rena
Resolver II
Resolver II

Try this

Total = CALCULATE(
    SUM(Test[TestQty]),
    ALL(Test[Operation]),
    Test[Operation] = 10)
 
It removes the filter with the all function and then allows you to set the Operation to 10 in the measure.
)

View solution in original post

2 REPLIES 2
Kedar_Pande
Super User
Super User

@AppleMan You can try:

Total = 
CALCULATE(
SUM(Test[TestQty]),
Test[Operation] = 10,
REMOVEFILTERS(Test[Operation])
)

💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

Rena
Resolver II
Resolver II

Try this

Total = CALCULATE(
    SUM(Test[TestQty]),
    ALL(Test[Operation]),
    Test[Operation] = 10)
 
It removes the filter with the all function and then allows you to set the Operation to 10 in the measure.
)

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.