<?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: Multiple Dates in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Multiple-Dates/m-p/3831324#M1237313</link>
    <description>&lt;P&gt;Thanks for your suggestion but the problem I have is that when i remove the join from apps to comps, my other dashboard calculations and visuals break.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Apr 2024 15:15:41 GMT</pubDate>
    <dc:creator>M_SBS_6</dc:creator>
    <dc:date>2024-04-11T15:15:41Z</dc:date>
    <item>
      <title>Multiple Dates</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Multiple-Dates/m-p/3831175#M1237262</link>
      <description>&lt;P&gt;Hi, I have 2 tables joined to each other apps table to comps table (one to many).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;***I need these 2 tables to join to show the other visuals within the dashboard***&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 dates that are needed apps[app_date] and comps[comp_date] as I want in my table to show how many apps and comps we've had side by side each year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem that I have is that I want a year column. If I select year from app_date hierarchy or comp_date hierarchy, it skews the numbers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I want to see:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calendar[date] Apps_vol. Comps_vol&lt;/P&gt;&lt;P&gt;2022.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9&lt;/P&gt;&lt;P&gt;2023.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&lt;/P&gt;&lt;P&gt;2024.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;. 4.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; . 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use the app_date, my apps_vol is as above but my comps_vol changes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a calendar table and joined apps[app_date] to calendar[date] and this is active.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then joined comps[comp_date] to calendar[date] and this join is inactive (probably due to joining apps to comps].&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea what I could do to get around this please?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 15:14:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Multiple-Dates/m-p/3831175#M1237262</guid>
      <dc:creator>M_SBS_6</dc:creator>
      <dc:date>2024-04-11T15:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Dates</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Multiple-Dates/m-p/3831309#M1237305</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="425074" data-lia-user-login="M_SBS_6" class="lia-mention lia-mention-user"&gt;M_SBS_6&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To achieve your desired outcome where the counts of apps and comps are side by side for each year, you can follow these steps:&lt;/P&gt;&lt;P&gt;1. **Create a Calendar Table**: Create a calendar table that includes a date column (`Date`) covering the range of your data.&lt;/P&gt;&lt;P&gt;2. **Create Relationships**: Create relationships between your calendar table and both the apps and comps tables based on their respective date columns (`app_date` and `comp_date`).&lt;/P&gt;&lt;P&gt;3. **Create Measures**: Create measures to count the number of apps and comps for each year. These measures should use the `CALCULATE` function along with `FILTER` to filter the data based on the selected year.&lt;/P&gt;&lt;P&gt;```DAX&lt;BR /&gt;Apps_vol = CALCULATE(COUNTROWS(apps), FILTER(apps, YEAR(apps[app_date]) = SELECTEDVALUE(Calendar[Year])))&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;```DAX&lt;BR /&gt;Comps_vol = CALCULATE(COUNTROWS(comps), FILTER(comps, YEAR(comps[comp_date]) = SELECTEDVALUE(Calendar[Year])))&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;4. **Create a Matrix Visual**: Create a matrix visual with the calendar year (`Year`) on rows and your measures (`Apps_vol` and `Comps_vol`) on columns.&lt;/P&gt;&lt;P&gt;- Put the `Year` column from your calendar table on the rows of the matrix.&lt;BR /&gt;- Put the `Apps_vol` measure on the columns of the matrix.&lt;BR /&gt;- Put the `Comps_vol` measure next to `Apps_vol` in the columns of the matrix.&lt;/P&gt;&lt;P&gt;This setup should give you the counts of apps and comps side by side for each year, without skewing the numbers when selecting a year from the hierarchy. The relationships between the calendar table and both the apps and comps tables ensure that the counts are calculated correctly based on the selected year.&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#993300"&gt;Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 15:04:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Multiple-Dates/m-p/3831309#M1237305</guid>
      <dc:creator>johnbasha33</dc:creator>
      <dc:date>2024-04-11T15:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Dates</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Multiple-Dates/m-p/3831324#M1237313</link>
      <description>&lt;P&gt;Thanks for your suggestion but the problem I have is that when i remove the join from apps to comps, my other dashboard calculations and visuals break.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 15:15:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Multiple-Dates/m-p/3831324#M1237313</guid>
      <dc:creator>M_SBS_6</dc:creator>
      <dc:date>2024-04-11T15:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Dates</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Multiple-Dates/m-p/3831385#M1237337</link>
      <description>&lt;P&gt;You could try a new table based off the two existing ones instead of using a calendar table.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Take a copy of the Apps and Comps table and turn them into single date field and make sure they're named the same (just "Date"), then for the Apps one add a custom column called "Apps" that is just equal to 1 then do the same for Comp called "Comp". You can then append these ontop of each other to get a three column table. Extract the year from the date and then group on the year using Sum on the other columns&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 15:54:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Multiple-Dates/m-p/3831385#M1237337</guid>
      <dc:creator>MOVC</dc:creator>
      <dc:date>2024-04-11T15:54:44Z</dc:date>
    </item>
  </channel>
</rss>

