# SELECTEDMEASURE

Used by expressions for calculation items to reference the measure that is in context.

## Syntax

SELECTEDMEASURE()


None

## Return value

A reference to the measure that is currently in context when the calculation item is evaluated.

## Remarks

• Can only be referenced in the expression for a calculation item.

• This function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.

## Example

The following calculation item expression calculates the year-to-date for whatever the measure is in context.

CALCULATE(SELECTEDMEASURE(), DATESYTD(DimDate[Date]))
{"ft_lang_label":"__label__en","ft_lang_prob":0.78819895,"math_prob":0.921239,"size":623,"snap":"2022-40-2023-06","text_gpt3_token_len":129,"char_repetition_ratio":0.15024233,"word_repetition_ratio":0.0,"special_character_ratio":0.17174959,"punctuation_ratio":0.060606062,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9754749,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-02-08T12:44:28Z\",\"WARC-Record-ID\":\"<urn:uuid:4c0c4b5a-4511-419f-9d20-7f1110926814>\",\"Content-Length\":\"37688\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f31831da-a128-4652-9b0e-d43b1935555f>\",\"WARC-Concurrent-To\":\"<urn:uuid:4db835a7-969e-4d93-a140-1fe6bd5dc104>\",\"WARC-IP-Address\":\"23.73.255.30\",\"WARC-Target-URI\":\"https://learn.microsoft.com/en-us/dax/selectedmeasure-function-dax\",\"WARC-Payload-Digest\":\"sha1:DCB4O72LHFBKM4KWGFS7GHCT5WJTT2OP\",\"WARC-Block-Digest\":\"sha1:44LFX7NQC7JIA5AH2UPEDDJ6FXPWD6RO\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764500813.58_warc_CC-MAIN-20230208123621-20230208153621-00329.warc.gz\"}"}