<?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: Convert default AND to OR using Custom Visuals in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Convert-default-AND-to-OR-using-Custom-Visuals/m-p/1580509#M3497</link>
    <description>&lt;P&gt;Don't have an answer but I am curious to learn about the use case.&amp;nbsp; To me this feels like a solution in search of a problem, and something that can potentially confuse the report users (as they may have different expectations).&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jan 2021 22:14:37 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2021-01-04T22:14:37Z</dc:date>
    <item>
      <title>Convert default AND to OR using Custom Visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Convert-default-AND-to-OR-using-Custom-Visuals/m-p/1580209#M3496</link>
      <description>&lt;P&gt;I would like to create custom visuals to convert default AND to OR logical operator.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am able to do this using DAX query.&amp;nbsp;&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/using-or-conditions-between-slicers-in-dax/" target="_blank" rel="noopener"&gt;https://www.sqlbi.com/articles/using-or-conditions-between-slicers-in-dax/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how I can achieve this by cresting custom visuals. Is there any existing slicer which will do for me ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way in powerbi I can execute query by passing parameters through custom visuals ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like Entity Framework Or Ado.Net ?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 15:14:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Convert-default-AND-to-OR-using-Custom-Visuals/m-p/1580209#M3496</guid>
      <dc:creator>pbiembeded</dc:creator>
      <dc:date>2021-01-07T15:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Convert default AND to OR using Custom Visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Convert-default-AND-to-OR-using-Custom-Visuals/m-p/1580509#M3497</link>
      <description>&lt;P&gt;Don't have an answer but I am curious to learn about the use case.&amp;nbsp; To me this feels like a solution in search of a problem, and something that can potentially confuse the report users (as they may have different expectations).&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 22:14:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Convert-default-AND-to-OR-using-Custom-Visuals/m-p/1580509#M3497</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-01-04T22:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Convert default AND to OR using Custom Visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Convert-default-AND-to-OR-using-Custom-Visuals/m-p/1582157#M3502</link>
      <description>&lt;P&gt;Sure Thanks for response. Here is requirement.&lt;/P&gt;&lt;P&gt;Let's say we have 2 entity:&lt;/P&gt;&lt;P&gt;1. Profession&lt;BR /&gt;o Manager&lt;BR /&gt;o Lead&lt;BR /&gt;o Product Owner&lt;BR /&gt;o Business Analyst&lt;BR /&gt;o Developer&lt;BR /&gt;o Tester&lt;BR /&gt;2. Clients&lt;BR /&gt;o Walmart&lt;BR /&gt;o Costco&lt;BR /&gt;o BJ’s&lt;BR /&gt;o Target&lt;BR /&gt;o Best Buy&lt;BR /&gt;o Acme&lt;/P&gt;&lt;P&gt;Just sample data.&lt;BR /&gt;Profession = 'Developer' AND Client = 'Walamart'&lt;BR /&gt;Profession = 'Developer' OR Client = 'Walamart'&lt;/P&gt;&lt;P&gt;Year&amp;nbsp; &amp;nbsp; &amp;nbsp;Efforts(AND) Efforts(OR)&lt;/P&gt;&lt;P&gt;2007&amp;nbsp; &amp;nbsp; &amp;nbsp;104&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1040&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2008&amp;nbsp; &amp;nbsp; &amp;nbsp;120&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 860&lt;/P&gt;&lt;P&gt;2009&amp;nbsp; &amp;nbsp; &amp;nbsp;56&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;440&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using OR Query, I get efforts put by developer for all clients in Same report. But because of Power BI default behavior of AND I am not able to get the exact records.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 14:16:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Convert-default-AND-to-OR-using-Custom-Visuals/m-p/1582157#M3502</guid>
      <dc:creator>pbiembeded</dc:creator>
      <dc:date>2021-01-05T14:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Convert default AND to OR using Custom Visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Convert-default-AND-to-OR-using-Custom-Visuals/m-p/1582803#M3507</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/278369"&gt;@pbiembeded&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I'm not aware of an existing slicer for this.&lt;/P&gt;
&lt;P&gt;You also can't supply custom queries via custom visuals - it's the combination of data roles, data view mapping (from capabilities) and any filters that you apply in the visual that get passed to Power BI for delegation. Power BI will determine what DAX to run.&lt;/P&gt;
&lt;P&gt;The filtering APIs have the same functionality as the filter pane in the UI, so if you can generate the desired result in a visual manually using an advanced filter then you can use the &lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/visuals/filter-api#the-advanced-filter-api?WT.mc_id=DP-MVP-5003712" target="_self"&gt;Advanced Filtering API&lt;/A&gt; to generate an &lt;FONT face="courier new,courier"&gt;IAdvancedFilterCondition&lt;/FONT&gt; for each column and specify whether they should be an AND or an OR operation in the &lt;FONT face="courier new,courier"&gt;&lt;SPAN class="pl-smi"&gt;AdvancedFilterLogicalOperators&lt;/SPAN&gt;&lt;/FONT&gt; property. This behaviour could then be wired up in a custom visual based on selections of displayed data values, to form a slicer, if you want this on the canvas rather then using the filter pane.&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 20:45:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Convert-default-AND-to-OR-using-Custom-Visuals/m-p/1582803#M3507</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2021-01-05T20:45:08Z</dc:date>
    </item>
  </channel>
</rss>

