Upgrade from Eikon -> Workspace. Learn about programming differences.

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
16 0 1 5

how to get field name for TR.F.SGAASR?

df_SGA,err = ek.get_data(['6902.T'],
    ['TR.F.SGAASR','TR.F.SGAASR.name','TR.F.SGAASR.fperiod','TR.CompanyName'],
    {'Curn':'JPY','Scale': 6 ,'Period':'FY0','Frq':'FY','SDate':'0','EDate':'-30'})
df_SGA


returns total selling, general and admin expenses but also break down of the item,

how can I get the name of alll the fields?

tried TR.F.SGAASR.name, TR.F.SGAASR.fieldname, TR.F.SGAASR.name.*** but nothing works...

python api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
85.1k 290 53 77

@wenjun.xia

Thank you for the exaplanation.

The field could be TR.F.SGAASR.LIName.

df_SGA, err = ek.get_data(['6902.T'],
                         ['TR.F.SGAASR','TR.F.SGAASR.LIName','TR.F.SGAASR.fperiod','TR.CompanyName'],
                         {'Curn':'JPY','Scale': 6 ,'Period':'FY0','Frq':'FY','SDate':'0','EDate':'-30'})
df_SGA

1646640532495.png


1646640532495.png (43.5 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thank you. It saved my day!
Is thay a way to find the related data field?I tried "Search Tools"->"Data Items" in my refinitiv workspace,
But cannot even find TR.F.SGAASR

屏幕截图-2022-03-07-175252.jpg

@wenjun.xia

I couldn't find it too.

I tried other output fields from the TR.JPOtherSGAExpense field and it works.

1646643464431.png

1646643464431.png (161.1 KiB)
Upvotes
85.1k 290 53 77

@wenjun.xia

Do you mean a display name of a field?

If yes, the fields' display names are populated in the data frame's column names.

1646633083325.png

You can set the raw_output to True to get the raw JSON data.

1646633162950.png


1646633083325.png (10.0 KiB)
1646633162950.png (55.2 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

The query returns multiple value for patricular fiscal year (eg. FY2021)

Apparently 42,577, and 87,309 showed in your snapshot is break down of overall SG&A, but they all have the same name "TR.F.SGAASR"

I wonder if I can retrieve item name such as "Packing Expense, xxx,xx" and "Provision for product warranties" directly.屏幕截图-2022-03-07-152005.jpg

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.