<?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: [Basic] userelationship on variable table #2 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basic-userelationship-on-variable-table-2/m-p/4235371#M167514</link>
    <description>&lt;P&gt;Thank you for your reply and support...!&lt;/P&gt;&lt;P&gt;I tried,but....it was the same.relationship is exsiting between [date] and [R_date]&lt;/P&gt;&lt;P&gt;and If I don't use "summarize" ,relationship truely works.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;anyone can give me more ideas?&lt;BR /&gt;(sorry for incovenient that I'm not available pbix file)&lt;/P&gt;</description>
    <pubDate>Wed, 09 Oct 2024 14:36:24 GMT</pubDate>
    <dc:creator>ohnothimagain</dc:creator>
    <dc:date>2024-10-09T14:36:24Z</dc:date>
    <item>
      <title>[Basic] userelationship on variable table #2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basic-userelationship-on-variable-table-2/m-p/4218205#M167156</link>
      <description>&lt;P&gt;Hello everyone : )&lt;BR /&gt;It's might be a basic but I've been stucking for weeks,hope anyone could tell me..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;■trying to do&lt;/P&gt;&lt;P&gt;want to calculate schedule fluctuation count.&lt;BR /&gt;summarize a table for exculding duplicates,filter product name with a specific condition,&lt;/P&gt;&lt;P&gt;and count [PN] by time series like day,week etc&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;■Table/DAX/Issues&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;LI-CODE lang="markup"&gt;test11:=var _tbl=
SUMMARIZE('TEST_','TEST_'[PN],'TEST_'[PO],"@M",min('TEST_'[M_Date]),"@R",min('TEST_'[R_Date]))
var _ftd=filter(_tbl,[@M]&amp;lt;[@R])
var _result=CALCULATE(countrows(_ftd),USERELATIONSHIP('Calendar'[Date],'TEST_'[R_Date]))

return
_result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=&amp;gt; userelationship don't work.it brings a value of [M_date]&lt;BR /&gt;&lt;BR /&gt;■attached file (I need to do it by powerpivot)&lt;BR /&gt;&lt;A href="https://1drv.ms/x/c/358c67390849f278/Eed2BqoXW_ZFm2O6Cb2YMrUBuHG8e2BB3808FO1Jl-t52A?e=vXnlq8" target="_self"&gt;DAX summarize+userelationship&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;That's all.thank you for reading and continuing support!&lt;BR /&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Sat, 05 Oct 2024 12:29:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basic-userelationship-on-variable-table-2/m-p/4218205#M167156</guid>
      <dc:creator>ohnothimagain</dc:creator>
      <dc:date>2024-10-05T12:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: [Basic] userelationship on variable table #2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basic-userelationship-on-variable-table-2/m-p/4218373#M167159</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="778360" data-lia-user-login="ohnothimagain" class="lia-mention lia-mention-user"&gt;ohnothimagain&lt;/a&gt;&amp;nbsp;Try with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;test11 :=&lt;BR /&gt;VAR _tbl =&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;'TEST_',&lt;BR /&gt;'TEST_'[PN],&lt;BR /&gt;'TEST_'[PO],&lt;BR /&gt;'TEST_'[M_Date],&lt;BR /&gt;'TEST_'[R_Date]&lt;BR /&gt;)&lt;BR /&gt;VAR _result =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;COUNTROWS(_tbl),&lt;BR /&gt;'TEST_'[M_Date] &amp;lt; 'TEST_'[R_Date],&amp;nbsp;&lt;BR /&gt;USERELATIONSHIP('Calendar'[Date], 'TEST_'[R_Date])&amp;nbsp;&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;_result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BBF&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 14:03:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basic-userelationship-on-variable-table-2/m-p/4218373#M167159</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2024-10-04T14:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: [Basic] userelationship on variable table #2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basic-userelationship-on-variable-table-2/m-p/4221901#M167200</link>
      <description>&lt;P&gt;Thank you for your quick responding!&lt;BR /&gt;I tried but unfortunately it was unsuccess(same result).&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Oct 2024 05:50:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basic-userelationship-on-variable-table-2/m-p/4221901#M167200</guid>
      <dc:creator>ohnothimagain</dc:creator>
      <dc:date>2024-10-05T05:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: [Basic] userelationship on variable table #2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basic-userelationship-on-variable-table-2/m-p/4231362#M167360</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="778360" data-lia-user-login="ohnothimagain" class="lia-mention lia-mention-user"&gt;ohnothimagain&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Based on the description, verify that there is an existing relationship between calendar[Date] and TEST[R_Date].&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, try using the following DAX formula.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;test11 := 
var _tbl = 
    SUMMARIZE(
        'TEST_', 
        'TEST_'[PN], 
        'TEST_'[PO], 
        "@M", MIN('TEST_'[M_Date]), 
        "@R", MIN('TEST_'[R_Date])
    )
var _ftd = FILTER(_tbl, [@M] &amp;lt; [@R])
var _result = COUNTROWS(
    CALCULATETABLE(
        _ftd, 
        USERELATIONSHIP('Calendar'[Date], 'TEST_'[R_Date])
    )
)
return _result&lt;/LI-CODE&gt;
&lt;P&gt;You can also view the following document to learn more information.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/userelationship-function-dax" target="_blank"&gt;USERELATIONSHIP function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wisdom Wu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 07:51:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basic-userelationship-on-variable-table-2/m-p/4231362#M167360</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-07T07:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: [Basic] userelationship on variable table #2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basic-userelationship-on-variable-table-2/m-p/4235371#M167514</link>
      <description>&lt;P&gt;Thank you for your reply and support...!&lt;/P&gt;&lt;P&gt;I tried,but....it was the same.relationship is exsiting between [date] and [R_date]&lt;/P&gt;&lt;P&gt;and If I don't use "summarize" ,relationship truely works.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;anyone can give me more ideas?&lt;BR /&gt;(sorry for incovenient that I'm not available pbix file)&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 14:36:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Basic-userelationship-on-variable-table-2/m-p/4235371#M167514</guid>
      <dc:creator>ohnothimagain</dc:creator>
      <dc:date>2024-10-09T14:36:24Z</dc:date>
    </item>
  </channel>
</rss>

