<?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 Dax query in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-query/m-p/4002136#M156019</link>
    <description>&lt;P&gt;Hello Experts,&lt;BR /&gt;I want to write a dax measure for the following scenario:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here, I have a slicer named "Period Range" that contains data like 2019/2020, 2020/2021, etc., in text format. In the last column, we have NR (Needs Refinement) and NI (Needs Improvement) for all last results available for the YTD (2023/2024) period range. If we do not have data for NR and NI in 2023/2024, it should display data from 2022/2023. Similarly, if we do not have data in 2022/2023, it should display data from 2021/2022, and this should continue until we find the data. If we select the period range 2022/2023 from the slicer, it should check data for 2022/2023. If there is no data in 2022/2023, it should display data from 2021/2022 if it is available.&lt;BR /&gt;&lt;BR /&gt;this should be done dynamically as we have large date range.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jun 2024 13:44:06 GMT</pubDate>
    <dc:creator>vally57</dc:creator>
    <dc:date>2024-06-20T13:44:06Z</dc:date>
    <item>
      <title>Dax query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-query/m-p/4002136#M156019</link>
      <description>&lt;P&gt;Hello Experts,&lt;BR /&gt;I want to write a dax measure for the following scenario:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here, I have a slicer named "Period Range" that contains data like 2019/2020, 2020/2021, etc., in text format. In the last column, we have NR (Needs Refinement) and NI (Needs Improvement) for all last results available for the YTD (2023/2024) period range. If we do not have data for NR and NI in 2023/2024, it should display data from 2022/2023. Similarly, if we do not have data in 2022/2023, it should display data from 2021/2022, and this should continue until we find the data. If we select the period range 2022/2023 from the slicer, it should check data for 2022/2023. If there is no data in 2022/2023, it should display data from 2021/2022 if it is available.&lt;BR /&gt;&lt;BR /&gt;this should be done dynamically as we have large date range.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 13:44:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-query/m-p/4002136#M156019</guid>
      <dc:creator>vally57</dc:creator>
      <dc:date>2024-06-20T13:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dax query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-query/m-p/4003271#M156162</link>
      <description>&lt;P&gt;Hi,&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="449993" data-lia-user-login="vally57" class="lia-mention lia-mention-user"&gt;vally57&lt;/a&gt;&amp;nbsp;,I am glad to help you.&lt;/P&gt;
&lt;P&gt;According to your description, you want to get the latest non-empty data for each period range.&lt;/P&gt;
&lt;P&gt;Here is my test, you can refer to it&lt;/P&gt;
&lt;P&gt;Since you didn't provide detailed data, I created test data to test, here is my test data.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;M_NR = 
VAR _max_year = MAXX(FILTER(ALL('Tabelle1'),'Tabelle1'[period range]=SELECTEDVALUE(Tabelle1[period range])&amp;amp;&amp;amp;'Tabelle1'[Needs Refinement]&amp;lt;&amp;gt;BLANK()),'Tabelle1'[year_num])
RETURN 
CALCULATE(MAX('Tabelle1'[Needs Refinement]),FILTER(ALL(Tabelle1),'Tabelle1'[year_num]=_max_year&amp;amp;&amp;amp;'Tabelle1'[period range]=MAX(Tabelle1[period range]))
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;M_NI = 
VAR _max_year = MAXX(FILTER(ALL('Tabelle1'),'Tabelle1'[period range]=SELECTEDVALUE(Tabelle1[period range])&amp;amp;&amp;amp;'Tabelle1'[Needs Imporvement]&amp;lt;&amp;gt;BLANK()),'Tabelle1'[year_num])
RETURN 
CALCULATE(MAX('Tabelle1'[Needs Imporvement]),FILTER(ALL(Tabelle1),'Tabelle1'[year_num]=_max_year&amp;amp;&amp;amp;'Tabelle1'[period range]=MAX('Tabelle1'[period range]))
)
&lt;/LI-CODE&gt;
&lt;P&gt;Please note that since the above results are from my test environment, it is possible that the data model fields I produced are not consistent with yours, so you can refer to the ideas I provided but the specific implementation code needs to be tweaked by you because the value of the MEASURES will be affected by the filtering in many ways (including the slicer and external filtering fields)&lt;/P&gt;
&lt;P&gt;If possible, could you provide the .PBIX file without sensitive data, it will be helpful to solve your problem.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Carson Jian,&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 04:31:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-query/m-p/4003271#M156162</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-21T04:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dax query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-query/m-p/4003755#M156219</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;thanks for responding,&lt;/P&gt;&lt;P&gt;Actually, "Needs Improvement" and "Needs Refinement" are not columns; those are values in the column named "Rating." Here, I want the latest non-empty count of the name. For example, if I select 2022/23 from the slicer and do not have "Needs Refinement" or "Needs Improvement" for that particular name, it should get the count of the name from 2021/22.&lt;/P&gt;&lt;P&gt;In the above example, we do not have Acqua data for "Needs Refinement" for the year 2023/24, so we should get the value 2, but I'm getting null. Similarly, if we select 2022/23, we should get 2, but I'm getting 5, which counts the entire date range.&lt;/P&gt;&lt;P&gt;I have added the pbix file&amp;nbsp;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/scl/fi/5k46fdr2b2kwrkwyd1mwv/test.pbix?rlkey=gs3e020c91pj4mdwtt5kcsv8t&amp;amp;st=rpga040f&amp;amp;dl=0" target="_blank"&gt;https://www.dropbox.com/scl/fi/5k46fdr2b2kwrkwyd1mwv/test.pbix?rlkey=gs3e020c91pj4mdwtt5kcsv8t&amp;amp;st=rpga040f&amp;amp;dl=0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;TIA&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 09:28:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-query/m-p/4003755#M156219</guid>
      <dc:creator>vally57</dc:creator>
      <dc:date>2024-06-21T09:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dax query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-query/m-p/4006723#M156851</link>
      <description>&lt;P&gt;Hi,&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="449993" data-lia-user-login="vally57" class="lia-mention lia-mention-user"&gt;vally57&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you for your reply.&lt;/P&gt;
&lt;P&gt;Thank you very much for correcting my misunderstanding of the real data&lt;/P&gt;
&lt;P&gt;The following is my understanding of your new requirements&lt;/P&gt;
&lt;P&gt;You want to filter the [RATING] column in the Audit table&lt;/P&gt;
&lt;P&gt;The screening criteria are as follows:&lt;/P&gt;
&lt;P&gt;Take Acqua as an example:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Although only have 23 - and 20-year data, but when the slicer selects other years, you also want measure to display data for the most recent year of the selected year, instead of displaying blank&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;At this point, even if 21 or 22 years is selected, the data for 2019/20 (the most recent and non-empty count) is displayed.&lt;/P&gt;
&lt;P&gt;Since data is available for 23 years (NeedsRefinement), data for 2022/23 is displayed&lt;/P&gt;
&lt;P&gt;Here's my code:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;test_NeedsRefinement = 

VAR CurrentDate = MAX('slicer_'[FISCAL_YEAR_ID])
VAR result=
         CALCULATE(
            COUNT('Audit'[Name]),
                FILTER(
                    ALLEXCEPT('Audit',Audit[Name]),
                   Audit[RATING]="Needs Refinement"&amp;amp;&amp;amp;
                'Audit'[FISCAL_YEAR_ID] = (CurrentDate)
        ))
VAR max_notblank=CALCULATE(MAX('Audit'[FISCAL_YEAR_ID]),FILTER(ALLSELECTED(Audit),[FISCAL_YEAR_ID]&amp;lt;CurrentDate&amp;amp;&amp;amp;'Audit'[FISCAL_YEAR_ID]&amp;lt;&amp;gt;BLANK()))
VAR result1=
        CALCULATE(
                COUNT('Audit'[Name]),
                    FILTER(
                        ALLEXCEPT('Audit',Audit[Name]),
                    Audit[RATING]="Needs Refinement"&amp;amp;&amp;amp;
                    'Audit'[FISCAL_YEAR_ID] =max_notblank

                    
        ))
RETURN

      IF(result=BLANK(),
      result1,result)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;test_NeedsImprovement = 

VAR CurrentDate = MAX('slicer_'[FISCAL_YEAR_ID])

VAR result=
         CALCULATE(
            COUNT('Audit'[Name]),
                FILTER(
                    ALLEXCEPT('Audit',Audit[Name]),
                   Audit[RATING]="Needs  Improvement"&amp;amp;&amp;amp;
                'Audit'[FISCAL_YEAR_ID] = (CurrentDate)
        ))
VAR max_notblank=CALCULATE(MAX('Audit'[FISCAL_YEAR_ID]),FILTER(ALLSELECTED(Audit),[FISCAL_YEAR_ID]&amp;lt;CurrentDate&amp;amp;&amp;amp;'Audit'[FISCAL_YEAR_ID]&amp;lt;&amp;gt;BLANK()))

VAR result1=
         CALCULATE(
            COUNT('Audit'[Name]),
                FILTER(
                    ALLEXCEPT('Audit',Audit[Name]),
                   Audit[RATING]="Needs  Improvement"&amp;amp;&amp;amp;
                   'Audit'[FISCAL_YEAR_ID]=max_notblank
                   
               
        ))        
RETURN 
        IF(result=BLANK(),
         result1,result)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&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;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Below is my test code, in page2&lt;/P&gt;
&lt;P&gt;About your non-empty situation because the field filter was written incorrectly "Needs Improvement"&lt;/P&gt;
&lt;P&gt;There are two Spaces in the data you provide, not one&lt;/P&gt;
&lt;P&gt;Looking forward to your reply&lt;/P&gt;
&lt;P&gt;I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Carson Jian,&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt; &lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 10:33:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-query/m-p/4006723#M156851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-24T10:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dax query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-query/m-p/4007315#M156933</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="449993" data-lia-user-login="vally57" class="lia-mention lia-mention-user"&gt;vally57&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Hope you're looking for something similar to the following&lt;BR /&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 16:09:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-query/m-p/4007315#M156933</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-06-24T16:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dax query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-query/m-p/4011056#M157867</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Anonymous&lt;/a&gt;It works if there is no relationship between the Audit and Calendar tables. I want a relationship between these tables, but to ignore it, I used the crossfilter function. However, it is still not working. If I manually remove the relationship, I get the expected result, which I do not want.&lt;BR /&gt;test_NeedsRefinement =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; CurrentDate = &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar'[Fiscal Year ID])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; result=&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;('Audit'[Name]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ALLEXCEPT&lt;/SPAN&gt;&lt;SPAN&gt;('Audit','Audit'[Name]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Audit[RATING]=&lt;/SPAN&gt;&lt;SPAN&gt;"Needs Refinement"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Audit'[FISCAL_YEAR_ID] = (CurrentDate)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ),&lt;/SPAN&gt;&lt;FONT color="#FF6600"&gt;&lt;SPAN&gt;CROSSFILTER&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#FF6600"&gt;('Calendar'[Date],Audit[PLANNED_START],None)&lt;/FONT&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; max_notblank=&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Audit'[FISCAL_YEAR_ID]),&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(Audit),[FISCAL_YEAR_ID]&amp;lt;CurrentDate&amp;amp;&amp;amp;'Audit'[FISCAL_YEAR_ID]&amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;()),&lt;/SPAN&gt;&lt;FONT color="#FF6600"&gt;&lt;SPAN&gt;CROSSFILTER&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#FF6600"&gt;('Calendar'[Date],Audit[PLANNED_START],None)&lt;/FONT&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; result1=&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;('Audit'[Name]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ALLEXCEPT&lt;/SPAN&gt;&lt;SPAN&gt;('Audit','Audit'[Name]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Audit[RATING]=&lt;/SPAN&gt;&lt;SPAN&gt;"Needs Refinement"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Audit'[FISCAL_YEAR_ID] =max_notblank&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ),&lt;/SPAN&gt;&lt;FONT color="#FF6600"&gt;&lt;SPAN&gt;CROSSFILTER&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#FF6600"&gt;('Calendar'[Date],Audit[PLANNED_START],None)&lt;/FONT&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(result=&lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; result1,result)&lt;BR /&gt;&lt;A href="https://www.dropbox.com/scl/fi/5k46fdr2b2kwrkwyd1mwv/test.pbix?rlkey=gs3e020c91pj4mdwtt5kcsv8t&amp;amp;st=3ek1m8z8&amp;amp;dl=0" target="_blank"&gt;https://www.dropbox.com/scl/fi/5k46fdr2b2kwrkwyd1mwv/test.pbix?rlkey=gs3e020c91pj4mdwtt5kcsv8t&amp;amp;st=3ek1m8z8&amp;amp;dl=0&lt;/A&gt;&lt;BR /&gt;TIA&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Jun 2024 12:37:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-query/m-p/4011056#M157867</guid>
      <dc:creator>vally57</dc:creator>
      <dc:date>2024-06-26T12:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dax query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-query/m-p/4012589#M158019</link>
      <description>&lt;P&gt;It works when I use CALCULATE inside another CALCULATE&amp;nbsp;and include the CROSSFILTER function.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 05:25:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-query/m-p/4012589#M158019</guid>
      <dc:creator>vally57</dc:creator>
      <dc:date>2024-06-27T05:25:56Z</dc:date>
    </item>
  </channel>
</rss>

