<?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 Composite model with USERELATIONSHIP() in calculation group in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Composite-model-with-USERELATIONSHIP-in-calculation-group/m-p/3165147#M157023</link>
    <description>&lt;P&gt;Hi!&lt;BR /&gt;I have a composite model with one DQ table and three aggs, only two are relevant for this question.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have a slicer that filters for unit category with a switch, and this works fine with the aggs. I recently added another slicer that switches relations with the date-dimension, this is defined in a calculation group with two items:&lt;/P&gt;&lt;P&gt;Opprettet dato =&lt;/P&gt;&lt;PRE&gt;&lt;FONT&gt;&lt;FONT&gt;CALCULATE&lt;/FONT&gt;&lt;FONT&gt;(&lt;/FONT&gt; &lt;FONT&gt;SELECTEDMEASURE&lt;/FONT&gt;&lt;FONT&gt;()&lt;/FONT&gt;&lt;FONT&gt;, &lt;/FONT&gt;&lt;FONT&gt;USERELATIONSHIP&lt;/FONT&gt;&lt;FONT&gt;(&lt;/FONT&gt;&lt;FONT&gt;fakkundeordre[OpprettetDato], dimkalender[Dato]&lt;/FONT&gt;&lt;FONT&gt;) )&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Ønsket leveringsdato =&lt;/P&gt;&lt;PRE&gt;&lt;FONT&gt;&lt;FONT&gt;CALCULATE&lt;/FONT&gt;&lt;FONT&gt;(&lt;/FONT&gt; &lt;FONT&gt;SELECTEDMEASURE&lt;/FONT&gt;&lt;FONT&gt;()&lt;/FONT&gt;&lt;FONT&gt;, &lt;/FONT&gt;&lt;FONT&gt;USERELATIONSHIP&lt;/FONT&gt;&lt;FONT&gt;(&lt;/FONT&gt;&lt;FONT&gt;fakkundeordre[ForespurtLeveringDato], dimkalender[Dato]&lt;/FONT&gt;&lt;FONT&gt;) )&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;Now the queries dont hit the aggs, and I can't really understand why. The new date fields are included in the aggs, I have tripple checked the configurations in "manage aggregations". I suspect the USERELATIONSHIP() might be the culprit, but I dont know.&lt;/P&gt;&lt;P&gt;Does anyone have experience with this?&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2023 07:55:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-03-31T07:55:56Z</dc:date>
    <item>
      <title>Composite model with USERELATIONSHIP() in calculation group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Composite-model-with-USERELATIONSHIP-in-calculation-group/m-p/3165147#M157023</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;I have a composite model with one DQ table and three aggs, only two are relevant for this question.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have a slicer that filters for unit category with a switch, and this works fine with the aggs. I recently added another slicer that switches relations with the date-dimension, this is defined in a calculation group with two items:&lt;/P&gt;&lt;P&gt;Opprettet dato =&lt;/P&gt;&lt;PRE&gt;&lt;FONT&gt;&lt;FONT&gt;CALCULATE&lt;/FONT&gt;&lt;FONT&gt;(&lt;/FONT&gt; &lt;FONT&gt;SELECTEDMEASURE&lt;/FONT&gt;&lt;FONT&gt;()&lt;/FONT&gt;&lt;FONT&gt;, &lt;/FONT&gt;&lt;FONT&gt;USERELATIONSHIP&lt;/FONT&gt;&lt;FONT&gt;(&lt;/FONT&gt;&lt;FONT&gt;fakkundeordre[OpprettetDato], dimkalender[Dato]&lt;/FONT&gt;&lt;FONT&gt;) )&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Ønsket leveringsdato =&lt;/P&gt;&lt;PRE&gt;&lt;FONT&gt;&lt;FONT&gt;CALCULATE&lt;/FONT&gt;&lt;FONT&gt;(&lt;/FONT&gt; &lt;FONT&gt;SELECTEDMEASURE&lt;/FONT&gt;&lt;FONT&gt;()&lt;/FONT&gt;&lt;FONT&gt;, &lt;/FONT&gt;&lt;FONT&gt;USERELATIONSHIP&lt;/FONT&gt;&lt;FONT&gt;(&lt;/FONT&gt;&lt;FONT&gt;fakkundeordre[ForespurtLeveringDato], dimkalender[Dato]&lt;/FONT&gt;&lt;FONT&gt;) )&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;Now the queries dont hit the aggs, and I can't really understand why. The new date fields are included in the aggs, I have tripple checked the configurations in "manage aggregations". I suspect the USERELATIONSHIP() might be the culprit, but I dont know.&lt;/P&gt;&lt;P&gt;Does anyone have experience with this?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 07:55:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Composite-model-with-USERELATIONSHIP-in-calculation-group/m-p/3165147#M157023</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-31T07:55:56Z</dc:date>
    </item>
  </channel>
</rss>

