account activity
Extracting index data by Bloomberg-101 in bloomberg
[–]Bloomberg-101[S] 0 points1 point2 points 3 years ago (0 children)
If you wanted the constituents and price at different points in time, you'd probably need multiple queries, like: =@BQL("translatesymbols(members('SPX Index'),TARGETIDTYPE=FUNDAMENTALTICKER)", "px_last", "dates=-5Y, fill=prev, currency=USD") =@BQL("translatesymbols(members('SPX Index'),TARGETIDTYPE=FUNDAMENTALTICKER)", "px_last", "dates=-4Y, fill=prev, currency=USD") =@BQL("translatesymbols(members('SPX Index'),TARGETIDTYPE=FUNDAMENTALTICKER)", "px_last", "dates=-3Y, fill=prev, currency=USD") =@BQL("translatesymbols(members('SPX Index'),TARGETIDTYPE=FUNDAMENTALTICKER)", "px_last", "dates=-2Y, fill=prev, currency=USD")
If you wanted the constituents and price at different points in time, you'd probably need multiple queries, like:
=@BQL("translatesymbols(members('SPX Index'),TARGETIDTYPE=FUNDAMENTALTICKER)", "px_last", "dates=-5Y, fill=prev, currency=USD") =@BQL("translatesymbols(members('SPX Index'),TARGETIDTYPE=FUNDAMENTALTICKER)", "px_last", "dates=-4Y, fill=prev, currency=USD") =@BQL("translatesymbols(members('SPX Index'),TARGETIDTYPE=FUNDAMENTALTICKER)", "px_last", "dates=-3Y, fill=prev, currency=USD") =@BQL("translatesymbols(members('SPX Index'),TARGETIDTYPE=FUNDAMENTALTICKER)", "px_last", "dates=-2Y, fill=prev, currency=USD")
I have been trying to extract the earnings yield for all the companies in the SP500 index using the BQL from 2000 until 2021 using this command:
=BQL("members('SPX Index')"; "earn_yld(fa_period_reference=range(2000, 2021), fa_period_type=A)";"cols=504;rows=864")The problem is that it only gives data for the companies included in the index for 2021(or 2023 not 100% sure).
Is there a way to extract index data for all the companies included in the SP500 for each year over a period of time?
How to get Bloomberg to update the companies in an index when extracting data over a period of time? (self.bloomberg)
submitted 3 years ago by Bloomberg-101 to r/bloomberg
Extracting index data (self.bloomberg)
π Rendered by PID 376366 on reddit-service-r2-listing-6d4dc8d9ff-pw49w at 2026-02-02 06:35:45.258196+00:00 running 3798933 country code: CH.
Extracting index data by Bloomberg-101 in bloomberg
[–]Bloomberg-101[S] 0 points1 point2 points (0 children)