<?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 Create a slicer for a fictive price point in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-slicer-for-a-fictive-price-point/m-p/3247551#M119705</link>
    <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;Hope you can help me find a solution for the following:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I have a dataset that looks like the table below. I match the price of my article with the prices of my competitors.&lt;/P&gt;&lt;P&gt;I can then see the impact ($ difference) with the number of sales and the difference between my and my competitors pricing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Article&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;My price&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Competitor&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Competitor Price&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Difference&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Sold items&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;$ difference&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Bread&lt;/TD&gt;&lt;TD&gt;$1,00&lt;/TD&gt;&lt;TD&gt;Supermarket 1&lt;/TD&gt;&lt;TD&gt;$1,10&lt;/TD&gt;&lt;TD&gt;0,10&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;2,50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Bread&lt;/TD&gt;&lt;TD&gt;$1,00&lt;/TD&gt;&lt;TD&gt;Supermarket 2&lt;/TD&gt;&lt;TD&gt;$1,00&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Bread&lt;/TD&gt;&lt;TD&gt;$1,00&lt;/TD&gt;&lt;TD&gt;Supermarket 3&lt;/TD&gt;&lt;TD&gt;$0,80&lt;/TD&gt;&lt;TD&gt;-0,20&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;-5,00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The total diffence for Bread is -$2,50 (2,50 + 0 + -5,00) at my current price point of $1,00.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Question:&amp;nbsp;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I want to make a slider that makes a fictive price for the column 'My Price' to see how this would change my $ difference.&lt;/P&gt;&lt;P&gt;So for example, if I make my price of bread to $0,95, how much would be $ difference be?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way of making a fictive variable that I can put in a slicer?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Hope someone has a helpful tip for this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Mon, 22 May 2023 12:35:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-05-22T12:35:13Z</dc:date>
    <item>
      <title>Create a slicer for a fictive price point</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-slicer-for-a-fictive-price-point/m-p/3247551#M119705</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;Hope you can help me find a solution for the following:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I have a dataset that looks like the table below. I match the price of my article with the prices of my competitors.&lt;/P&gt;&lt;P&gt;I can then see the impact ($ difference) with the number of sales and the difference between my and my competitors pricing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Article&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;My price&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Competitor&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Competitor Price&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Difference&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Sold items&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;$ difference&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Bread&lt;/TD&gt;&lt;TD&gt;$1,00&lt;/TD&gt;&lt;TD&gt;Supermarket 1&lt;/TD&gt;&lt;TD&gt;$1,10&lt;/TD&gt;&lt;TD&gt;0,10&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;2,50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Bread&lt;/TD&gt;&lt;TD&gt;$1,00&lt;/TD&gt;&lt;TD&gt;Supermarket 2&lt;/TD&gt;&lt;TD&gt;$1,00&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Bread&lt;/TD&gt;&lt;TD&gt;$1,00&lt;/TD&gt;&lt;TD&gt;Supermarket 3&lt;/TD&gt;&lt;TD&gt;$0,80&lt;/TD&gt;&lt;TD&gt;-0,20&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;-5,00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The total diffence for Bread is -$2,50 (2,50 + 0 + -5,00) at my current price point of $1,00.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Question:&amp;nbsp;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I want to make a slider that makes a fictive price for the column 'My Price' to see how this would change my $ difference.&lt;/P&gt;&lt;P&gt;So for example, if I make my price of bread to $0,95, how much would be $ difference be?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way of making a fictive variable that I can put in a slicer?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Hope someone has a helpful tip for this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 12:35:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-slicer-for-a-fictive-price-point/m-p/3247551#M119705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-22T12:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create a slicer for a fictive price point</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-slicer-for-a-fictive-price-point/m-p/3247801#M119721</link>
      <description>&lt;P&gt;You can create a numeric range parameter. That will add a slicer to the page and create a measure to return the selected value, so your measure for difference would be something like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Difference =
SUMX (
    'Table',
    ( 'Table'[Competitor price] - [My price value] ) * 'Table'[num sold]
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 22 May 2023 13:57:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-slicer-for-a-fictive-price-point/m-p/3247801#M119721</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-05-22T13:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create a slicer for a fictive price point</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-slicer-for-a-fictive-price-point/m-p/3247944#M119735</link>
      <description>&lt;P&gt;Hi Johnt75,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply!&lt;BR /&gt;&lt;BR /&gt;I am not sure I understand.&lt;BR /&gt;So when I've made the parameter as described above, and changed the measure into the calculation, it shows up like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've added the parameter as a slicer, but it doesnt do anything yet (as I've probably missed something crucial).&lt;BR /&gt;How does the parameter change the outcome of the data exactly?&lt;BR /&gt;&lt;BR /&gt;Sorry if this is confusing, parameters are very new to me&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 14:38:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-slicer-for-a-fictive-price-point/m-p/3247944#M119735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-22T14:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create a slicer for a fictive price point</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-slicer-for-a-fictive-price-point/m-p/3247961#M119738</link>
      <description>&lt;P&gt;In your difference measure where you would have referenced the difference column from the table you now reference the parameter value, as in the code sample I posted. Then when you put the difference measure in a visual it will change as you change the slicer.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 14:42:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-slicer-for-a-fictive-price-point/m-p/3247961#M119738</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-05-22T14:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create a slicer for a fictive price point</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-slicer-for-a-fictive-price-point/m-p/3250937#M119948</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;, Sorry for my late reply. Your solution works!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is something in my original dash (model/file source related) that doesnt work with the solution, so hence I was so puzzled. But on a different simplified dash, it works great.&lt;BR /&gt;&lt;BR /&gt;Thanks for the time and effort &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 11:33:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-slicer-for-a-fictive-price-point/m-p/3250937#M119948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-24T11:33:57Z</dc:date>
    </item>
  </channel>
</rss>

