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
rmeng
Helper II
Helper II

Return a single value from a column based on a measure

Is it possible to extract a value from a column based on the following measure?

I want a scalar value from Year column (2020 as an example) based on a measure.

CALCULATE( VALUES('CALENDAR'[Year]),FILTER(Interactions [# Interactions] = 7931))
2021-06-30_11-36-04.jpg

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Measure 1 =
VAR summary =
ADDCOLUMNS (
SUMMARIZE (
'Table',
'Table'[Year]
),
"temp", #Interactions
)
RETURN
MINX (
FILTER (
summary,
[temp] =7931
),
'Table'[Year]
)


This will work fine, just edit you table column

View solution in original post

5 REPLIES 5
rmeng
Helper II
Helper II

rmeng_0-1625051699483.png

 

Anonymous
Not applicable

This #interaction is a measure or field from your data??? 

It´s a measure not a calculated column

 

Anonymous
Not applicable

Measure 1 =
VAR summary =
ADDCOLUMNS (
SUMMARIZE (
'Table',
'Table'[Year]
),
"temp", #Interactions
)
RETURN
MINX (
FILTER (
summary,
[temp] =7931
),
'Table'[Year]
)


This will work fine, just edit you table column
Anonymous
Not applicable

You can try below measure:
=

CALCULATE(FIRSTNONBLANK('CALENDAR'[Year],1),Interactions [# Interactions] = 7931)

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.