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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.