<?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: Need Correction in my modelling in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Correction-in-my-modelling/m-p/3417869#M129348</link>
    <description>&lt;P&gt;Thank you for giving your valuable feedback and I will apply as you suggested thankyou verymuch&lt;/P&gt;</description>
    <pubDate>Wed, 06 Sep 2023 14:04:54 GMT</pubDate>
    <dc:creator>Arrow2727</dc:creator>
    <dc:date>2023-09-06T14:04:54Z</dc:date>
    <item>
      <title>Need Correction in my modelling</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Correction-in-my-modelling/m-p/3417435#M129327</link>
      <description>&lt;P&gt;&lt;A href="https://1drv.ms/u/s!ApjYS1n3GKQxgRv1O5lTLBVRCosB?e=RGNGOk" target="_blank"&gt;Sample modeling file.pbix&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="380283" data-lia-user-login="elaine_csv" class="lia-mention lia-mention-user"&gt;elaine_csv&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="22167" data-lia-user-login="csvdesk" class="lia-mention lia-mention-user"&gt;csvdesk&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="78143" data-lia-user-login="SMS" class="lia-mention lia-mention-user"&gt;SMS&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I'm new to Power BI, and I've received a dataset that I need to use to generate outputs for my clients.&lt;BR /&gt;However, I'm encountering an issue with filtering data by dates during the modeling process.&lt;BR /&gt;Could someone please assist me in correcting my data modeling?&lt;BR /&gt;Your help would be greatly appreciated, and it would motivate me to continue working with Power BI.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have attached my sample data file for reference&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 09:56:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Correction-in-my-modelling/m-p/3417435#M129327</guid>
      <dc:creator>Arrow2727</dc:creator>
      <dc:date>2023-09-06T09:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need Correction in my modelling</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Correction-in-my-modelling/m-p/3417579#M129334</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="556707" data-lia-user-login="Arrow2727" class="lia-mention lia-mention-user"&gt;Arrow2727&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The dataset isn't structured properly to be able to filter by date. You should design it as &lt;A href="https://learn.microsoft.com/en-us/power-bi/guidance/star-schema" target="_self"&gt;Star Schema&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The &lt;A href="https://learn.microsoft.com/en-us/power-bi/guidance/model-date-tables" target="_self"&gt;Date table&lt;/A&gt; needs to be set up correctly. This table will be then be the go to for dates in your visuals.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;There seems to be a lot of irrelevant columns in the tables, delete what you don't need. The report performance will improve&lt;/LI&gt;&lt;LI&gt;In Options turn off Auto date/time for new files. You won't need this as you will have the date table. this will also help with performance&lt;/LI&gt;&lt;LI&gt;In Power query, if they are relevant, convert all date columns that you need to Date&lt;/LI&gt;&lt;LI&gt;I would create a duplicate of Opportunity and call it DIM Opportunity and just keep the column like Id and if you need them for filtering, keep Risk, Type ETC..&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the above is done, then you need to make relationships between the tables correctly. Delete all the relationships you have and start from scratch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Examples would be&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Dim Opportunity has a one to many relationship on the Id column with all tables with the Opportunity ID in it. It will happen that the relationship with opportunity will be one to one, change this to Many to many and change the cross filter Dim Opportunity filters Opportunity&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Date Table date column one to many relationship with Opportunity, but which date column? You can only have one active relationship with a table at a time. I personally use Close date.&lt;/LI&gt;&lt;LI&gt;Do the same above for the other date columns in Opportunity. They will be inactive, but you can use the USERELATIONSHIP Dax later to activate them in measures.&lt;/LI&gt;&lt;LI&gt;Same with the Account, Partner Create relationships with all tables that have relevant ids in them&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I hope this helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If this post helps, then please Accept it as the solution&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 11:24:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Correction-in-my-modelling/m-p/3417579#M129334</guid>
      <dc:creator>JoeBarry</dc:creator>
      <dc:date>2023-09-06T11:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need Correction in my modelling</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Correction-in-my-modelling/m-p/3417869#M129348</link>
      <description>&lt;P&gt;Thank you for giving your valuable feedback and I will apply as you suggested thankyou verymuch&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 14:04:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Correction-in-my-modelling/m-p/3417869#M129348</guid>
      <dc:creator>Arrow2727</dc:creator>
      <dc:date>2023-09-06T14:04:54Z</dc:date>
    </item>
  </channel>
</rss>

