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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors