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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
KH88
Frequent Visitor

Measure to return a specific value in a column based on slicers

Hi all,
I'm struggling to create a measure. I have a data table that lists products, their associated tests, and the spec limits for each test. My Power BI page is set up with slicers for both product and test. The idea is to create a multi-row card that would list the spec limits (min, target, max) and would change for the associated product and test every time the slicers were changed. I cannot figure out how to do this with a measure and have it pull the value I need specific to the slicer-selected product and test. I tried using SELECTEDVALUE('Product Specs'[Target]) but that returns [BLANK], I assume because it's not filtering down to one value like I think. 

 

Table: Product Specs

ProductTestMinTargetMax
CheeseFat136
CheeseProtein101216
MilkFat234
MilkProtein7912
MilkMoisture808590

 

Any help is appreciated! Thanks!

2 ACCEPTED SOLUTIONS
Greg_Deckler
Community Champion
Community Champion

@KH88 You could use any simple aggregation for this I believe. See attached PBIX file below signature.

 



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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

Thank you. I thought it should be that simple but it wasn't giving me the right answer. Digging into it more, it looks like my table connections for the Test ("product" and "test" slicers aren't pulling directly from that table but route through other connections to compile multiple ways that "test" can be represented in the data) were not connected correctly so it was summing all of the values instead of going through the test slicer. I'm glad to hear it's as simple as that once I get my connections fixed.

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@KH88 You could use any simple aggregation for this I believe. See attached PBIX file below signature.

 



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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thank you. I thought it should be that simple but it wasn't giving me the right answer. Digging into it more, it looks like my table connections for the Test ("product" and "test" slicers aren't pulling directly from that table but route through other connections to compile multiple ways that "test" can be represented in the data) were not connected correctly so it was summing all of the values instead of going through the test slicer. I'm glad to hear it's as simple as that once I get my connections fixed.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.