<?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: Deneb Visuals Cross-Filtering Only One Way in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Deneb-Visuals-Cross-Filtering-Only-One-Way/m-p/3123000#M7050</link>
    <description>&lt;P&gt;Figured it out...the Edit interactions was the solution. Can't believe I missed that.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Mar 2023 02:59:57 GMT</pubDate>
    <dc:creator>Magellan2022</dc:creator>
    <dc:date>2023-03-10T02:59:57Z</dc:date>
    <item>
      <title>Deneb Visuals Cross-Filtering Only One Way</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Deneb-Visuals-Cross-Filtering-Only-One-Way/m-p/3122981#M7049</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created two Deneb visuals starting out with a simple bar-chart with the same measures used in each but each with different granularities. One is at a Team level category and the other is at a Contributor level category. I have a Power BI table visual that is being cross-filtered when a bar is selected from either one of the Deneb visuals. However when selecting a row in the table visual, the cross-filtering doesn't execute/impact the other two Deneb visuals. Also, a Deneb visual won't cross-filter the other Deneb visual or vice versa...only the table visual is being cross-filtered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Power BI Interactivty settings of both Deneb visuals are all checked and the data point limit is set to 250 and no warnings are appearing either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the Vega-lite code that I'm using if it helps...&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "data": {"name": "dataset"},
  "width": {"step": 60},
  "params": [
    {"name": "bwActual", "value": 0.8},
    {"name": "bwDelta", "value": 0.4},
    {"name": "bwTick", "value": 1},
    {
      "name": "MeasureVar",
      "value": "datum['Variance']"
    }
  ],
  "transform": [
    {
      "calculate": "datum['Actual'] &amp;gt;= datum['Budget']",
      "as": "delta_positive"
    },
    {
      "calculate": "datum['delta_positive'] ? '#BAD9B1':'#E3BFBF'",
      "as": "delta_bar_color"
    },
    {
      "calculate": "datum['delta_positive'] ? 'bottom': 'top'",
      "as": "actual_label_baseline"
    },
    {
      "calculate": "datum['delta_positive'] ? 'black': 'white'",
      "as": "actual_label_color"
    },
    {
      "calculate": "datum['delta_positive'] ? -4: 4",
      "as": "actual_label_offset"
    }
  ],
  "layer": [
    {
      "mark": {
        "type": "bar",
        "width": {
          "expr": "bandwidth('x') * bwActual"
        },
        "tooltip": true,
        "style": "bar_actual"
      },
      "encoding": {
        "y": {
          "field": "Actual"
        },
        "opacity": {
          "condition": {
            "test": {
              "field": "__selected__",
              "equal": "off"
            },
            "value": 0.3
          },
          "value": 1
        },
        "tooltip": [
          {"field": "Team","type":"nominal"},
          {"field": "Budget","type":"quantitative"},
          {"field": "Actual","type":"quantitative"},
          {"field": "Variance","type":"quantitative"}
          ]
      }
      },
    {
      "description": "Budget Delta Bar",
      "mark": {
        "type": "bar",
        "width": {
          "expr": "bandwidth('x') * bwDelta"
        },
        "xOffset": {
          "expr": "(bandwidth('x') * (bwActual - bwDelta))/2"
        },
        "opacity": 1,
        "tooltip": true,
        "color": {
          "expr": "datum['delta_bar_color']"
        }
      },
      "encoding": {
        "y2": {
          "field": "Budget"
        },
        "tooltip": [
          {"field": "Team","type":"nominal"},
          {"field": "Budget","type":"quantitative"},
          {"field": "Actual","type":"quantitative"},
          {"field": "Variance","type":"quantitative"}
          ]
      }
      
    },
    {
      "description": "Gross Profit Budget Tick",
      "mark": {
        "type": "tick",
        "orient": "horizontal",
        "tooltip": true,
        "color": "orange",
        "opacity": 1,
        "thickness": 3,
        "width": {
          "expr": "bandwidth('x') * bwTick"
        }
      },
      "encoding": {
        "y": {
          "field": "Budget"
        },
        "tooltip": [
          {"field": "Team","type":"nominal"},
          {"field": "Budget","type":"quantitative"},
          {"field": "Actual","type":"quantitative"},
          {"field": "Variance","type":"quantitative"}
          ]
      }
    }
  ],
  "encoding": {
    "x": {
      "field": "Team",
      "type": "nominal",
      "axis": {"title": null}
    },
    "y": {
      "field": "Actual",
      "type": "quantitative",
      "axis": {"title": null}
    }
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 02:48:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Deneb-Visuals-Cross-Filtering-Only-One-Way/m-p/3122981#M7049</guid>
      <dc:creator>Magellan2022</dc:creator>
      <dc:date>2023-03-10T02:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Deneb Visuals Cross-Filtering Only One Way</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Deneb-Visuals-Cross-Filtering-Only-One-Way/m-p/3123000#M7050</link>
      <description>&lt;P&gt;Figured it out...the Edit interactions was the solution. Can't believe I missed that.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 02:59:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Deneb-Visuals-Cross-Filtering-Only-One-Way/m-p/3123000#M7050</guid>
      <dc:creator>Magellan2022</dc:creator>
      <dc:date>2023-03-10T02:59:57Z</dc:date>
    </item>
  </channel>
</rss>

