<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Refer to a Calculated Measure in Tabular Editor inside a Calculation Item Expression in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Refer-to-a-Calculated-Measure-in-Tabular-Editor-inside-a/m-p/3392274#M127906</link>
    <description>&lt;P&gt;I am sorry for not making it clear.&lt;/P&gt;&lt;P&gt;I know how to use one "&lt;STRONG&gt;Calculation item&lt;/STRONG&gt;" inside another "&lt;STRONG&gt;Calculation item&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;Here my question is how to use "&lt;STRONG&gt;Calculated Measure&lt;/STRONG&gt;" inside a Calculation item.&lt;/P&gt;&lt;P&gt;Provided the calculated measure is created in Tabular Editor and not in Desktop.&lt;BR /&gt;Hope its clear now.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2023 10:51:56 GMT</pubDate>
    <dc:creator>Mbuhary_AOud</dc:creator>
    <dc:date>2023-08-22T10:51:56Z</dc:date>
    <item>
      <title>Refer to a Calculated Measure in Tabular Editor inside a Calculation Item Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Refer-to-a-Calculated-Measure-in-Tabular-Editor-inside-a/m-p/3388722#M127730</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to refer to a "Calculated Measure" while we write an expression of a "Calculation Item" in Tabular Editor ?&lt;/P&gt;&lt;P&gt;I am trying to build a calculation where I need a "Specific Text" to filter one of the columns in the Dates Table.&lt;/P&gt;&lt;P&gt;I already built the the required text and stored as a "Calculated Measure" in the Tabular Editor.&lt;/P&gt;&lt;P&gt;Is there a way I can use that as filter argument to another Calculation Item?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g. In my Calculation Group named "&lt;STRONG&gt;TimeCals&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;"Calculated Measure A" refers to "XYZ"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to use the above as follows:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Calculate(&lt;BR /&gt;Selectedmeasure(),&lt;BR /&gt;Removefilters(DatesTable),&lt;/P&gt;&lt;P&gt;DatesTable[Column_A]='TimeCalcs'[Calculated Measure A]&lt;/P&gt;</description>
      <pubDate>Sun, 20 Aug 2023 11:42:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Refer-to-a-Calculated-Measure-in-Tabular-Editor-inside-a/m-p/3388722#M127730</guid>
      <dc:creator>Mbuhary_AOud</dc:creator>
      <dc:date>2023-08-20T11:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to a Calculated Measure in Tabular Editor inside a Calculation Item Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Refer-to-a-Calculated-Measure-in-Tabular-Editor-inside-a/m-p/3391559#M127855</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="583941" data-lia-user-login="Mbuhary_AOud" class="lia-mention lia-mention-user"&gt;Mbuhary_AOud&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, do you mean you want to use the measure created in the Power BI Desktop in your calculated group's item?&lt;/P&gt;
&lt;P&gt;I test it in my side , i think you can just use it as the same in Power BI .&lt;/P&gt;
&lt;P&gt;This is the measure in my Power Bi Desktop:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Measure in Desktop = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Table'[Value]) , &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;('Table'))&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Then i create a calcualted item in Tabular Editor:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;var _measure = [Measure in Desktop]&lt;BR /&gt;return&lt;BR /&gt;selectedmeasure()+_measure&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;The&amp;nbsp;selectedmeasure() means which the measure you put on the visual value.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;img /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then we can put the field on the visual to test , the result is as follows:&lt;/P&gt;
&lt;img /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Aug 2023 05:45:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Refer-to-a-Calculated-Measure-in-Tabular-Editor-inside-a/m-p/3391559#M127855</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2023-08-22T05:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to a Calculated Measure in Tabular Editor inside a Calculation Item Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Refer-to-a-Calculated-Measure-in-Tabular-Editor-inside-a/m-p/3391904#M127876</link>
      <description>&lt;P&gt;Hi Aniya&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;I have created the Calculated Measure inside Tabular Editor, so it resides in the same Tabular Editor Calculation Group.&lt;/P&gt;&lt;P&gt;I am looking refer to it in my Calculation Item.&lt;/P&gt;&lt;P&gt;Have you tried something like that...&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Imran&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 08:09:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Refer-to-a-Calculated-Measure-in-Tabular-Editor-inside-a/m-p/3391904#M127876</guid>
      <dc:creator>Mbuhary_AOud</dc:creator>
      <dc:date>2023-08-22T08:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to a Calculated Measure in Tabular Editor inside a Calculation Item Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Refer-to-a-Calculated-Measure-in-Tabular-Editor-inside-a/m-p/3392055#M127886</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="583941" data-lia-user-login="Mbuhary_AOud" class="lia-mention lia-mention-user"&gt;Mbuhary_AOud&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your quick response ! Do you mean you need to use the calculated item in the same calculated group?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;For an example , you want to use the [Type] in the [New Calculation]?&lt;BR /&gt;If this , i think you can not just use it directly . In my understand , the calculated group is used to expnad the dimension for the current measure. And for each item has their own contect filter in this visual and do not affect each other.&lt;/P&gt;
&lt;P&gt;So , we can not just use the 'Calculated Group'[Item] to use it in the other&amp;nbsp;Item.&lt;/P&gt;
&lt;P&gt;If you want to use the other value , i think you need to copy the whole dax code in this item as a parameter using the "VAR" to define it.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result is as follows:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By another , in my understand , we can not also use the other item in the differnt calculated group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 09:01:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Refer-to-a-Calculated-Measure-in-Tabular-Editor-inside-a/m-p/3392055#M127886</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2023-08-22T09:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to a Calculated Measure in Tabular Editor inside a Calculation Item Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Refer-to-a-Calculated-Measure-in-Tabular-Editor-inside-a/m-p/3392274#M127906</link>
      <description>&lt;P&gt;I am sorry for not making it clear.&lt;/P&gt;&lt;P&gt;I know how to use one "&lt;STRONG&gt;Calculation item&lt;/STRONG&gt;" inside another "&lt;STRONG&gt;Calculation item&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;Here my question is how to use "&lt;STRONG&gt;Calculated Measure&lt;/STRONG&gt;" inside a Calculation item.&lt;/P&gt;&lt;P&gt;Provided the calculated measure is created in Tabular Editor and not in Desktop.&lt;BR /&gt;Hope its clear now.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 10:51:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Refer-to-a-Calculated-Measure-in-Tabular-Editor-inside-a/m-p/3392274#M127906</guid>
      <dc:creator>Mbuhary_AOud</dc:creator>
      <dc:date>2023-08-22T10:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to a Calculated Measure in Tabular Editor inside a Calculation Item Expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Refer-to-a-Calculated-Measure-in-Tabular-Editor-inside-a/m-p/3393656#M127987</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="583941" data-lia-user-login="Mbuhary_AOud" class="lia-mention lia-mention-user"&gt;Mbuhary_AOud&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your quick response! Do you mean you create a measure in the Tabular Editor? And you want to use this measure in the calculated Item?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;As you can &amp;nbsp;just drag it to the expression box and use the [Measure Name] in it :&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If i do not understand your need , you can give the detailed steps in your side .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 01:11:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Refer-to-a-Calculated-Measure-in-Tabular-Editor-inside-a/m-p/3393656#M127987</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2023-08-23T01:11:24Z</dc:date>
    </item>
  </channel>
</rss>

