<?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: Get difference in Matrix between two dates of a slicer (show zeros) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-in-Matrix-between-two-dates-of-a-slicer-show/m-p/1039914#M13912</link>
    <description>&lt;P&gt;How can i point to a slicer where i can select the days? instead of have to use 2 measures (today &amp;amp; yesterday) inside this measure&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2020 17:11:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-04-21T17:11:26Z</dc:date>
    <item>
      <title>Get difference in Matrix between two dates of a slicer (show zeros)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-in-Matrix-between-two-dates-of-a-slicer-show/m-p/1037782#M13856</link>
      <description>&lt;P&gt;Hi everyone, I'm having problems creating a measure that can calculate the difference between 2 dates in a slicer, i created this one but doesn't seems to work like i would want:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;DELTA2 = 
VAR LASTDAY = [HOY]
VAR PREVDAY = [ayer]
VAR TOODAY = CALCULATE(SUM('DATA BASE'[Tons]),'DATA BASE'[FECHA DE CAPTURA] = LASTDAY,VALUES('DATA BASE'[OP]))
VAR YESTERDAY = CALCULATE(SUM('DATA BASE'[Tons]),'DATA BASE'[FECHA DE CAPTURA] = PREVDAY,VALUES('DATA BASE'[OP]))
RETURN
TOODAY-YESTERDAY&lt;/LI-CODE&gt;&lt;P&gt;where:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[HOY] = CALCULATE(MAX('DATA BASE'[FECHA DE CAPTURA]),ALL('DATA BASE'))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;and,&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[ayer] = CALCULATE(MAX('DATA BASE'[FECHA DE CAPTURA]) - 1,ALL('DATA BASE'))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;my result is this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;BR /&gt;it only kinda works with the last 2 dates, also i filtered the results of DELTA2 = 0, so it only displays the changes between days.&lt;BR /&gt;I would like to reach a matrix like this (whatever date i choose, will be always one day and the next):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;if anyone can help me, i would really apreciatted.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 22:40:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-in-Matrix-between-two-dates-of-a-slicer-show/m-p/1037782#M13856</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-20T22:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference in Matrix between two dates of a slicer (show zeros)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-in-Matrix-between-two-dates-of-a-slicer-show/m-p/1039914#M13912</link>
      <description>&lt;P&gt;How can i point to a slicer where i can select the days? instead of have to use 2 measures (today &amp;amp; yesterday) inside this measure&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 17:11:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-in-Matrix-between-two-dates-of-a-slicer-show/m-p/1039914#M13912</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-21T17:11:26Z</dc:date>
    </item>
  </channel>
</rss>

