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
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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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