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
tfraletti
Helper I
Helper I

Not being able to get the value from the first date

Hi,

 

I'm trying to get the value from the first date of a stock. This is the first step in order to compute the variation between today and first day of the series (so the formula bellow is the denominator). The problem is i'm not being able to ignore the filter context provided by the visual on the date column, so i'm getting the row level value everytime. Can someone help me pointing what am i doing wrong?

 

first_day_value = 
CALCULATE(
    AVERAGE('yahoo finance'[close]),
    FILTER(
        ALL('yahoo finance'[date]),
        MIN('yahoo finance'[date])
    )
)

 

Capturar.PNG

 

1 REPLY 1
rfigtree
Resolver III
Resolver III

i must have deleted my first post, doing again.

the Min function will be scanning the original data model context, not the whole thing as you aree expecting.

I would do this.

 

var FirstDate=

calculate(min(table[date]),all(table))

return calculate(average(table[close]),filter(all(table),table[date]=FirstDate))

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.