<?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 Userelationship can only be used in calculate but already is. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-can-only-be-used-in-calculate-but-already-is/m-p/3250961#M119951</link>
    <description>&lt;P&gt;Hey there to whom ever is reading this,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been working on a project now I'm trying to put in a measure that will use a inactive relationship only for a single graph, however when attempting this I get back an error saying "USERELATIONSHIP function can only be used in the CALCULATE function." while it already is in a Calculate function (code provided below). I assume that I am making a mistake on how to write this piece of dax code myself since I am still quite new to PowerBI as a whole I would appreciate any help you might be able to offer so I can get this to work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Date = 
    CALCULATE(
        USERELATIONSHIP(Date_Dimensions[Date],TT_WK_DETAILS[TT_DATE])
    )&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you so much in advance!&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2023 11:50:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-05-24T11:50:38Z</dc:date>
    <item>
      <title>Userelationship can only be used in calculate but already is.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-can-only-be-used-in-calculate-but-already-is/m-p/3250961#M119951</link>
      <description>&lt;P&gt;Hey there to whom ever is reading this,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been working on a project now I'm trying to put in a measure that will use a inactive relationship only for a single graph, however when attempting this I get back an error saying "USERELATIONSHIP function can only be used in the CALCULATE function." while it already is in a Calculate function (code provided below). I assume that I am making a mistake on how to write this piece of dax code myself since I am still quite new to PowerBI as a whole I would appreciate any help you might be able to offer so I can get this to work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Date = 
    CALCULATE(
        USERELATIONSHIP(Date_Dimensions[Date],TT_WK_DETAILS[TT_DATE])
    )&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you so much in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 11:50:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-can-only-be-used-in-calculate-but-already-is/m-p/3250961#M119951</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-24T11:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Userelationship can only be used in calculate but already is.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-can-only-be-used-in-calculate-but-already-is/m-p/3250970#M119954</link>
      <description>&lt;P&gt;USERELATIONSHIP is a calculate modifier. You need to use it with a measure/expression as the first term.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Date = 
    CALCULATE( [Your Measure],
        USERELATIONSHIP(Date_Dimensions[Date],TT_WK_DETAILS[TT_DATE])
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 11:56:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-can-only-be-used-in-calculate-but-already-is/m-p/3250970#M119954</guid>
      <dc:creator>ppm1</dc:creator>
      <dc:date>2023-05-24T11:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Userelationship can only be used in calculate but already is.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-can-only-be-used-in-calculate-but-already-is/m-p/3250986#M119959</link>
      <description>&lt;P&gt;I understand so a count for example? However I am using dates here I am unsure of what would be a good measure to use for this excuse my ignorance still learning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 12:08:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-can-only-be-used-in-calculate-but-already-is/m-p/3250986#M119959</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-24T12:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Userelationship can only be used in calculate but already is.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-can-only-be-used-in-calculate-but-already-is/m-p/3252701#M120053</link>
      <description>&lt;P&gt;For anyone else running into this I figured it out using this inactive relationship I managed to average the worked hours using an average command in within the calculate I hope it helps for anyone in the future &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 08:06:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-can-only-be-used-in-calculate-but-already-is/m-p/3252701#M120053</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-25T08:06:23Z</dc:date>
    </item>
  </channel>
</rss>

