<?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: Extract value from a column applying filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-value-from-a-column-applying-filters/m-p/2565504#M73091</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="381706" data-lia-user-login="CCUK22" class="lia-mention lia-mention-user"&gt;CCUK22&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created a sample pbix file(&lt;STRONG&gt;see attachment&lt;/STRONG&gt;) for you, please check whether that is what you want. Assume that the&amp;nbsp; proper relationships have been created among these three tables.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then you can create a &lt;STRONG&gt;measure&lt;/STRONG&gt;&amp;nbsp;as below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _maxdate =
    CALCULATE (
        MAX ( 'fact_HouseMarket'[Date] ),
        FILTER (
            ALLSELECTED ( 'fact_HouseMarket' ),
            'fact_HouseMarket'[Region ID] = SELECTEDVALUE ( 'fact_HouseMarket'[Region ID] )
        )
    )
RETURN
    CALCULATE (
        MAX ( 'fact_HouseMarket'[AveragePriceDetachedHouse] ),
        FILTER ( 'fact_HouseMarket', 'fact_HouseMarket'[Date] = _maxdate )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If the above one can't help you get the desired result, please&amp;nbsp;provide some &lt;STRONG&gt;sample data&lt;/STRONG&gt; in your tables &lt;SPAN&gt;fact_HouseMarket,&amp;nbsp;dim_Period and&amp;nbsp;dim_Region&lt;/SPAN&gt;(&lt;EM&gt;&lt;STRONG&gt;exclude &lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;sensitive &lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/EM&gt;) with &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Text&lt;/STRONG&gt; &lt;/FONT&gt;format and your &lt;STRONG&gt;expected result&lt;/STRONG&gt; with backend logic and special examples? &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;It is better&lt;/FONT&gt;&lt;/STRONG&gt; if you can share a &lt;FONT color="#008000"&gt;&lt;STRONG&gt;simplified&lt;/STRONG&gt; &lt;/FONT&gt;pbix file. You can refer the following link to upload the file to the community. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FDesktop%2FHow-to-upload-PBI-in-Community%2Fm-p%2F1672886&amp;amp;data=04%7C01%7Cv-yiruan%40microsoft.com%7C4f580813734d4a8355b008da16f6e91a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637847547341062885%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=YJvujige2YITXKbKED9JieQm5LBdf%2F3IYPM4ggdiijQ%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;How to upload PBI in Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jun 2022 05:32:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-06-08T05:32:16Z</dc:date>
    <item>
      <title>Extract value from a column applying filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-value-from-a-column-applying-filters/m-p/2558924#M72748</link>
      <description>&lt;P&gt;Dear Power Community,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am trying to get metrics for some CARDs on PBI. Can you help to write a DAX metric? Then, I can use the expression for other cards.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need to extract from the column AveragePriceDetachedHouse (there is no need to calculate the average, the value in the cell is already the average) at fact_HouseMarket; filtered by the last month's entry from column Date at dim_Period; filtered by England from column nam_RegionName at dim_Region. The dataset is updated on 1st of each month.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2022 09:36:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-value-from-a-column-applying-filters/m-p/2558924#M72748</guid>
      <dc:creator>CCUK22</dc:creator>
      <dc:date>2022-06-04T09:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Extract value from a column applying filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-value-from-a-column-applying-filters/m-p/2558928#M72749</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="381706" data-lia-user-login="CCUK22" class="lia-mention lia-mention-user"&gt;CCUK22&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;by the last month's entry&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;do you mean previous month ore kast month in filter context? How does your visual look like?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2022 10:32:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-value-from-a-column-applying-filters/m-p/2558928#M72749</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-04T10:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Extract value from a column applying filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-value-from-a-column-applying-filters/m-p/2559040#M72752</link>
      <description>&lt;P&gt;Hi, it is the last month in the filter context.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2022 17:53:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-value-from-a-column-applying-filters/m-p/2559040#M72752</guid>
      <dc:creator>CCUK22</dc:creator>
      <dc:date>2022-06-04T17:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Extract value from a column applying filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-value-from-a-column-applying-filters/m-p/2559041#M72753</link>
      <description>&lt;P&gt;the last month in the filter context is March. In June the last month will be April and so on...&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2022 17:55:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-value-from-a-column-applying-filters/m-p/2559041#M72753</guid>
      <dc:creator>CCUK22</dc:creator>
      <dc:date>2022-06-04T17:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Extract value from a column applying filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-value-from-a-column-applying-filters/m-p/2565504#M73091</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="381706" data-lia-user-login="CCUK22" class="lia-mention lia-mention-user"&gt;CCUK22&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created a sample pbix file(&lt;STRONG&gt;see attachment&lt;/STRONG&gt;) for you, please check whether that is what you want. Assume that the&amp;nbsp; proper relationships have been created among these three tables.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then you can create a &lt;STRONG&gt;measure&lt;/STRONG&gt;&amp;nbsp;as below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _maxdate =
    CALCULATE (
        MAX ( 'fact_HouseMarket'[Date] ),
        FILTER (
            ALLSELECTED ( 'fact_HouseMarket' ),
            'fact_HouseMarket'[Region ID] = SELECTEDVALUE ( 'fact_HouseMarket'[Region ID] )
        )
    )
RETURN
    CALCULATE (
        MAX ( 'fact_HouseMarket'[AveragePriceDetachedHouse] ),
        FILTER ( 'fact_HouseMarket', 'fact_HouseMarket'[Date] = _maxdate )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If the above one can't help you get the desired result, please&amp;nbsp;provide some &lt;STRONG&gt;sample data&lt;/STRONG&gt; in your tables &lt;SPAN&gt;fact_HouseMarket,&amp;nbsp;dim_Period and&amp;nbsp;dim_Region&lt;/SPAN&gt;(&lt;EM&gt;&lt;STRONG&gt;exclude &lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;sensitive &lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/EM&gt;) with &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Text&lt;/STRONG&gt; &lt;/FONT&gt;format and your &lt;STRONG&gt;expected result&lt;/STRONG&gt; with backend logic and special examples? &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;It is better&lt;/FONT&gt;&lt;/STRONG&gt; if you can share a &lt;FONT color="#008000"&gt;&lt;STRONG&gt;simplified&lt;/STRONG&gt; &lt;/FONT&gt;pbix file. You can refer the following link to upload the file to the community. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FDesktop%2FHow-to-upload-PBI-in-Community%2Fm-p%2F1672886&amp;amp;data=04%7C01%7Cv-yiruan%40microsoft.com%7C4f580813734d4a8355b008da16f6e91a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637847547341062885%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=YJvujige2YITXKbKED9JieQm5LBdf%2F3IYPM4ggdiijQ%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;How to upload PBI in Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 05:32:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-value-from-a-column-applying-filters/m-p/2565504#M73091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-08T05:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Extract value from a column applying filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-value-from-a-column-applying-filters/m-p/2572966#M73577</link>
      <description>&lt;P&gt;Hello Yingyinr,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just saw your reply today. Thank you for taking the time. I will test it and let you know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2022 21:00:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-value-from-a-column-applying-filters/m-p/2572966#M73577</guid>
      <dc:creator>CCUK22</dc:creator>
      <dc:date>2022-06-11T21:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Extract value from a column applying filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-value-from-a-column-applying-filters/m-p/2579624#M73981</link>
      <description>&lt;P&gt;Hello Yingyinr,&lt;/P&gt;&lt;P&gt;The solution has worked! I pulled the correct table and columns, and added a date and region slicer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 08:27:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-value-from-a-column-applying-filters/m-p/2579624#M73981</guid>
      <dc:creator>CCUK22</dc:creator>
      <dc:date>2022-06-15T08:27:54Z</dc:date>
    </item>
  </channel>
</rss>

