<?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: Measure to display default value based on default attribute in PowerBI in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-default-value-based-on-default-attribute-in/m-p/2865884#M92357</link>
    <description>&lt;P&gt;Not entirely clear what you want...&lt;/P&gt;</description>
    <pubDate>Wed, 26 Oct 2022 19:57:40 GMT</pubDate>
    <dc:creator>daXtreme</dc:creator>
    <dc:date>2022-10-26T19:57:40Z</dc:date>
    <item>
      <title>Measure to display default value based on default attribute in PowerBI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-default-value-based-on-default-attribute-in/m-p/2865667#M92342</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have scenario where the measure should display default value based on default attribute when measure alone is used.&lt;BR /&gt;Whereas measure should slice it's value when particular attribute is selected.&lt;BR /&gt;E.g.,&lt;BR /&gt;Employee table:&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;EmpId&lt;/TD&gt;&lt;TD&gt;EmpName&lt;/TD&gt;&lt;TD&gt;Department&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Joe&lt;/TD&gt;&lt;TD&gt;HR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Lee&lt;/TD&gt;&lt;TD&gt;FIN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Ray&lt;/TD&gt;&lt;TD&gt;MKT&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Salary table:&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;EmpId&lt;/TD&gt;&lt;TD&gt;Salary&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As default when only Salary column is used then it displays sum of all the Salary.&lt;BR /&gt;Instead of summing up all the Salary, it should sum up only where Department=HR as default.I created custom measure for this, default behaviour is working fine but when EmpName attribute and CustomSalary measure are&amp;nbsp;used then Total value displays default value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advice how to overcome this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CustomSalary = IF(&lt;BR /&gt;HASONEFILTER(Employee[EmpName]) ,&lt;BR /&gt;SUM(Salary[Salary]),&lt;BR /&gt;CALCULATE(SUM(Salary[Salary]),Employee[Department] = "HR" )&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 17:49:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-default-value-based-on-default-attribute-in/m-p/2865667#M92342</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-26T17:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to display default value based on default attribute in PowerBI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-default-value-based-on-default-attribute-in/m-p/2865884#M92357</link>
      <description>&lt;P&gt;Not entirely clear what you want...&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 19:57:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-default-value-based-on-default-attribute-in/m-p/2865884#M92357</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-10-26T19:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to display default value based on default attribute in PowerBI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-default-value-based-on-default-attribute-in/m-p/2866058#M92368</link>
      <description>&lt;P&gt;Thanks for looking into this.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Total should display as value 600 (sum of all the Salary) instead of 100 (default Department=HR).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 22:01:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-display-default-value-based-on-default-attribute-in/m-p/2866058#M92368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-26T22:01:56Z</dc:date>
    </item>
  </channel>
</rss>

