<?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 Filter function Power BI in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Filter-function-Power-BI/m-p/4023169#M53880</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone&lt;/SPAN&gt;&lt;SPAN&gt;, I have a problem in my filter function that is stopping the process&lt;/SPAN&gt;&lt;SPAN&gt;, it&lt;/SPAN&gt;&lt;SPAN&gt;'s simply the targetpages&lt;/SPAN&gt;&lt;SPAN&gt;.getvisuals&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;) that is not recognized as a function&lt;/SPAN&gt;&lt;SPAN&gt;, i searched everywhere on the net &lt;/SPAN&gt;&lt;SPAN&gt;.getvisuals&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;) is what is used from the javascript API of power BI&lt;/SPAN&gt;&lt;SPAN&gt;. Anyone can help me please solve this problem&lt;/SPAN&gt;&lt;SPAN&gt;? Here&lt;/SPAN&gt;&lt;SPAN&gt;'s the code below &lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2024-07-03 170458.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1126229iB3A57CCA500D0FBD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture d’écran 2024-07-03 170458.png" alt="Capture d’écran 2024-07-03 170458.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2024 15:11:12 GMT</pubDate>
    <dc:creator>TheMoM</dc:creator>
    <dc:date>2024-07-03T15:11:12Z</dc:date>
    <item>
      <title>Filter function Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filter-function-Power-BI/m-p/4023169#M53880</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone&lt;/SPAN&gt;&lt;SPAN&gt;, I have a problem in my filter function that is stopping the process&lt;/SPAN&gt;&lt;SPAN&gt;, it&lt;/SPAN&gt;&lt;SPAN&gt;'s simply the targetpages&lt;/SPAN&gt;&lt;SPAN&gt;.getvisuals&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;) that is not recognized as a function&lt;/SPAN&gt;&lt;SPAN&gt;, i searched everywhere on the net &lt;/SPAN&gt;&lt;SPAN&gt;.getvisuals&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;) is what is used from the javascript API of power BI&lt;/SPAN&gt;&lt;SPAN&gt;. Anyone can help me please solve this problem&lt;/SPAN&gt;&lt;SPAN&gt;? Here&lt;/SPAN&gt;&lt;SPAN&gt;'s the code below &lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2024-07-03 170458.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1126229iB3A57CCA500D0FBD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture d’écran 2024-07-03 170458.png" alt="Capture d’écran 2024-07-03 170458.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 15:11:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filter-function-Power-BI/m-p/4023169#M53880</guid>
      <dc:creator>TheMoM</dc:creator>
      <dc:date>2024-07-03T15:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filter function Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filter-function-Power-BI/m-p/4024477#M53906</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/752639"&gt;@TheMoM&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try checking that before calling getvisuals(), you need to define a variable to receive a specific page before calling its subfunction.&lt;/P&gt;
&lt;P&gt;You may refer to the code as below and I hope it could help you to resolve your issue.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;report.getPages()
  .then(function (pages) {
    // Retrieve first page.
    var firstPage = pages[0];
    firstPage.getVisuals()
      .then(function (visuals) {
        console.log(visuals);
      })
  })&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 07:36:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filter-function-Power-BI/m-p/4024477#M53906</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-04T07:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filter function Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filter-function-Power-BI/m-p/4024672#M53913</link>
      <description>&lt;P&gt;Yes that's what I did with :&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;targetPage&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;pages&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;];&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;Am I misunderstanding something?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 09:04:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filter-function-Power-BI/m-p/4024672#M53913</guid>
      <dc:creator>TheMoM</dc:creator>
      <dc:date>2024-07-04T09:04:35Z</dc:date>
    </item>
  </channel>
</rss>

