<?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: What is the best approach to build Dax measures for Star Schema Data Model in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-is-the-best-approach-to-build-Dax-measures-for-Star-Schema/m-p/1485695#M28419</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="253048" data-lia-user-login="kumar27" class="lia-mention lia-mention-user"&gt;kumar27&lt;/a&gt;&amp;nbsp;Thanks for your reply. Can you explain more about your first point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I cant use filter conditions from slicers in my dashboard. This is because I am using slicer based measure selection and my number of measures are high.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Nov 2020 20:37:16 GMT</pubDate>
    <dc:creator>chinthada</dc:creator>
    <dc:date>2020-11-10T20:37:16Z</dc:date>
    <item>
      <title>What is the best approach to build Dax measures for Star Schema Data Model</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-is-the-best-approach-to-build-Dax-measures-for-Star-Schema/m-p/1483865#M28367</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Previously we had a PowerBi dashboard based on a large fact table. However, recently we have revamped the backend data warehouse with Star Schema. My previous DAX measure had few filters to several rows in a large fact table (VW_Water) like below,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MeasureDryOverflow = CALCULATE(DISTINCTCOUNT(&lt;FONT color="#339966"&gt;&lt;SPAN&gt;'VW_Water'[CC_MASTER_ID]&lt;/SPAN&gt;&lt;/FONT&gt;),&lt;BR /&gt;FILTER('VW_Water',&lt;FONT color="#339966"&gt;&lt;SPAN&gt;'VW_Water'[CC_MAST_TYPE]&lt;/SPAN&gt;&lt;/FONT&gt;= "WASTE WTR"),&lt;BR /&gt;FILTER('VW_Water',&lt;FONT color="#339966"&gt;&lt;SPAN&gt;'VW_Water'[CC_MAST_SUBTYPE]&lt;/SPAN&gt;&lt;/FONT&gt;= "WASTE WTR*OVERFLOW"),&lt;BR /&gt;FILTER('VW_Water',&lt;FONT color="#339966"&gt;&lt;SPAN&gt;'VW_Water'[QUESTIONS]&lt;/SPAN&gt;&lt;/FONT&gt;= "DRY"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I have connected to new Star Schema DW with "import" mode and created a measure like below (with filters to relational data tables),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MeasureDryOverflow = CALCULATE(DISTINCTCOUNT('DW VW_NFPM_FactRFS'[CC_MASTER_ID]),&lt;BR /&gt;FILTER('STAGING CC_TYPES','STAGING CC_TYPES'[CC_T_ID]= "WASTE WTR"),&lt;BR /&gt;FILTER('STAGING CC_SUBTYPES','STAGING CC_SUBTYPES'[CC_SUBTYPES__ID]= "WASTE WTR*OVERFLOW"),&lt;BR /&gt;FILTER('STAGING CC_MASTER__CC_MAST_QUEST_TEXT','STAGING CC_MASTER__CC_MAST_QUEST_TEXT'[CC_MAST_QUEST_REPLY]= "DRY"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This new measure is yielding the same results as the previous measure, but my new PBI dashboard is really slow and very large compared to the previous dashboard. What is the best and correct way of creating measures when it comes to Star Schema-based data source? Any suggestions to improve my dashboard?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 03:51:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-is-the-best-approach-to-build-Dax-measures-for-Star-Schema/m-p/1483865#M28367</guid>
      <dc:creator>chinthada</dc:creator>
      <dc:date>2020-11-10T03:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best approach to build Dax measures for Star Schema Data Model</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-is-the-best-approach-to-build-Dax-measures-for-Star-Schema/m-p/1483901#M28369</link>
      <description>&lt;P&gt;Ideally, you should not write explicit filter conditions on DAX , if you have star schema then your metrics created in the fact tabe should be able to sliced and diced by dimensions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ans then you can handel this selected items that is inside your filter condition from Slicers.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 05:19:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-is-the-best-approach-to-build-Dax-measures-for-Star-Schema/m-p/1483901#M28369</guid>
      <dc:creator>kumar27</dc:creator>
      <dc:date>2020-11-10T05:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best approach to build Dax measures for Star Schema Data Model</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-is-the-best-approach-to-build-Dax-measures-for-Star-Schema/m-p/1485695#M28419</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="253048" data-lia-user-login="kumar27" class="lia-mention lia-mention-user"&gt;kumar27&lt;/a&gt;&amp;nbsp;Thanks for your reply. Can you explain more about your first point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I cant use filter conditions from slicers in my dashboard. This is because I am using slicer based measure selection and my number of measures are high.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 20:37:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-is-the-best-approach-to-build-Dax-measures-for-Star-Schema/m-p/1485695#M28419</guid>
      <dc:creator>chinthada</dc:creator>
      <dc:date>2020-11-10T20:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best approach to build Dax measures for Star Schema Data Model</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-is-the-best-approach-to-build-Dax-measures-for-Star-Schema/m-p/1486395#M28445</link>
      <description>&lt;P&gt;If would have a created a Metric&amp;nbsp; as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MeasureDryOverflow = DISTINCTCOUNT('DW VW_NFPM_FactRFS'[CC_MASTER_ID])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And then I would have used the filters as onto the dashboard itself :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CC_T_ID= "WASTE WTR"&lt;BR /&gt;CC_SUBTYPES__ID]= "WASTE WTR*OVERFLOW"&lt;BR /&gt;CC_MAST_QUEST_REPLY= "DRY"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;from the filter pane to the right not in the slicers ., that would speed up the performance a bit , and certainly the best approach for star schema if you have multiple metrcis with different filters on these columns itself.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 06:21:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-is-the-best-approach-to-build-Dax-measures-for-Star-Schema/m-p/1486395#M28445</guid>
      <dc:creator>kumar27</dc:creator>
      <dc:date>2020-11-11T06:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best approach to build Dax measures for Star Schema Data Model</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-is-the-best-approach-to-build-Dax-measures-for-Star-Schema/m-p/1487402#M28498</link>
      <description>&lt;P&gt;One of the &lt;STRONG&gt;worst&lt;/STRONG&gt; things you can do in Power BI (and you're doing it) is to put a full table in a filter under CALCULATE. Never do this unless you want to experience extreme slowness of measures. The golden rule of DAX says: &lt;STRONG&gt;You should never filter a table when you can filter a column&lt;/STRONG&gt;. Please stick to this rule religiously. If you want to know why this is so, you must grab the book by The Italians "The Definitive Guide to DAX."&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 13:00:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-is-the-best-approach-to-build-Dax-measures-for-Star-Schema/m-p/1487402#M28498</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-11T13:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best approach to build Dax measures for Star Schema Data Model</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-is-the-best-approach-to-build-Dax-measures-for-Star-Schema/m-p/1500055#M28989</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="253048" data-lia-user-login="kumar27" class="lia-mention lia-mention-user"&gt;kumar27&lt;/a&gt;&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;As I mentioned above my dashboard design won't allow to use visual slicers or filterpane filters.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 20:53:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/What-is-the-best-approach-to-build-Dax-measures-for-Star-Schema/m-p/1500055#M28989</guid>
      <dc:creator>chinthada</dc:creator>
      <dc:date>2020-11-17T20:53:15Z</dc:date>
    </item>
  </channel>
</rss>

