<?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: Slicer does not respond to visual, probably because there is no direct relationship in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-does-not-respond-to-visual-probably-because-there-is-no/m-p/3353165#M125939</link>
    <description>&lt;P&gt;From the naming convention it looks like you have 2 fact tables? You won't be able to create your measure with the current data model. If you look at the little arrows between the relationships, that indicates which direction the data can be filtered.&amp;nbsp;The only table that will be able to filter your FCT Fuel table will be DIM contracts.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jul 2023 11:47:43 GMT</pubDate>
    <dc:creator>Syk</dc:creator>
    <dc:date>2023-07-27T11:47:43Z</dc:date>
    <item>
      <title>Slicer does not respond to visual, probably because there is no direct relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-does-not-respond-to-visual-probably-because-there-is-no/m-p/3352702#M125911</link>
      <description>&lt;P&gt;I have the following tables in my data model. (This is only a small part of a large data model, but these are the relevant tables. I have no influence on the shape of the model, I am just creating dashboards. )&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Using the information in FCT Fuel, I calculated the average price per fuel session, filtering on electric cars.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;avg_price_per_fuel_session = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'FCT Fuel'&lt;/SPAN&gt;&lt;SPAN&gt;[COSTPRICEEXCLVAT]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'FCT Fuel'&lt;/SPAN&gt;&lt;SPAN&gt;)), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'DIM FuelType'&lt;/SPAN&gt;&lt;SPAN&gt;[FUELGROUP]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"Electric"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works as expected, and I can create visuals using this measure.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But would like to be able to use a slicer with 'DIM Leaseobject'[Make] in it, but the visual does not respond to that slicer.&amp;nbsp;&lt;BR /&gt;I can understand that that is probably because there isn't a direct relationship between 'FCT Fuel' and 'DIM Leaseobject'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to add 'FCT Contract' in the measure. The visual now responds to the slicer, but the outcome of the calculation is off.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;avg_price_per_fuel_session = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'FCT Fuel'&lt;/SPAN&gt;&lt;SPAN&gt;[COSTPRICEEXCLVAT]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'FCT Fuel'&lt;/SPAN&gt;&lt;SPAN&gt;)), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'DIM FuelType'&lt;/SPAN&gt;&lt;SPAN&gt;[FUELGROUP]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"Electric",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'FCT Contract'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Does anyone know how I can fix this issue?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 08:07:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-does-not-respond-to-visual-probably-because-there-is-no/m-p/3352702#M125911</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-27T08:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer does not respond to visual, probably because there is no direct relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-does-not-respond-to-visual-probably-because-there-is-no/m-p/3353165#M125939</link>
      <description>&lt;P&gt;From the naming convention it looks like you have 2 fact tables? You won't be able to create your measure with the current data model. If you look at the little arrows between the relationships, that indicates which direction the data can be filtered.&amp;nbsp;The only table that will be able to filter your FCT Fuel table will be DIM contracts.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 11:47:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-does-not-respond-to-visual-probably-because-there-is-no/m-p/3353165#M125939</guid>
      <dc:creator>Syk</dc:creator>
      <dc:date>2023-07-27T11:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer does not respond to visual, probably because there is no direct relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-does-not-respond-to-visual-probably-because-there-is-no/m-p/3353269#M125946</link>
      <description>&lt;P&gt;That is correct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you see another solution that would get the desired outcome?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm thinking, I could try to add a calculated column with Leaseobject_PK to FCT Fuel, using somging like VLOOKUP. I could then create a realtionship between FCT Fuel and DIM Leaseobject.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 12:28:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-does-not-respond-to-visual-probably-because-there-is-no/m-p/3353269#M125946</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-27T12:28:45Z</dc:date>
    </item>
  </channel>
</rss>

