<?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: Dax Measures in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measures/m-p/4591727#M175844</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your semantic model looks like or how your expected outcome looks like, but please try something like below whether it provides the expected result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;measurename: =
IF (
    SELECTEDVALUE ( sales[country] ) = 'US',
    CALCULATE (
        SELECTEDVALUE ( sales[weight] ) * Sales[Total Market],
        ALLEXCEPT ( account, account[accountid] ),
        ALL ( asset )
    ),
    Sales[Total Market]
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 02 Mar 2025 11:20:07 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2025-03-02T11:20:07Z</dc:date>
    <item>
      <title>Dax Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measures/m-p/4591652#M175843</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; If(&lt;/P&gt;&lt;P&gt;Selectedvalue(sales[country]) = 'US',&lt;/P&gt;&lt;P&gt;Calculate(&lt;/P&gt;&lt;P&gt;Selectedvalue(sales[weight]) * Sales[Total Market],all excep(account, account[accountid],&lt;/P&gt;&lt;P&gt;All(asset)&lt;/P&gt;&lt;P&gt;),&lt;/P&gt;&lt;P&gt;Sales[Total Market]&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Dax measure not working, help required&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Mar 2025 09:18:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measures/m-p/4591652#M175843</guid>
      <dc:creator>swarnalvr</dc:creator>
      <dc:date>2025-03-02T09:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measures/m-p/4591727#M175844</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your semantic model looks like or how your expected outcome looks like, but please try something like below whether it provides the expected result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;measurename: =
IF (
    SELECTEDVALUE ( sales[country] ) = 'US',
    CALCULATE (
        SELECTEDVALUE ( sales[weight] ) * Sales[Total Market],
        ALLEXCEPT ( account, account[accountid] ),
        ALL ( asset )
    ),
    Sales[Total Market]
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Mar 2025 11:20:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measures/m-p/4591727#M175844</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2025-03-02T11:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measures/m-p/4593881#M175919</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="815053" data-lia-user-login="swarnalvr" class="lia-mention lia-mention-user"&gt;swarnalvr&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Agree with&amp;nbsp;Jihwan_Kim!&lt;BR /&gt;Please provide sample data of all tables involved in DAX, the relationship between tables and your expected results according to the following post:&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1579748#M642005" target="_blank"&gt;Re: How to Get Your Question Answered Quickly - Page 2 - Microsoft Fabric Community&lt;/A&gt;&lt;BR /&gt;It is difficult for us to understand what effect you want to achieve and where the problem lies with only DAX. Thank you for your cooperation!&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Dino Tao&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 01:52:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measures/m-p/4593881#M175919</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-03-04T01:52:54Z</dc:date>
    </item>
  </channel>
</rss>

