<?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: Power BI: Compare Selected Year with Table Column and Check for Blank Value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Compare-Selected-Year-with-Table-Column-and-Check-for/m-p/4815942#M184151</link>
    <description>&lt;P&gt;Sorry but I do not understand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please show images and provide same data as I aske din the previous post&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 03 Sep 2025 17:54:28 GMT</pubDate>
    <dc:creator>FBergamaschi</dc:creator>
    <dc:date>2025-09-03T17:54:28Z</dc:date>
    <item>
      <title>Power BI: Compare Selected Year with Table Column and Check for Blank Value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Compare-Selected-Year-with-Table-Column-and-Check-for/m-p/4815916#M184147</link>
      <description>&lt;P&gt;give me the solution of the scenario in which I need to get selected value from the slicer by which reflects the planning year. i need to compare , subtraction of 1 of selected Year with the column of PMOKPIManagement named as Planning year if condition become true check the column of same table named as ParentKPIId is blank then write "New" else "Forwarded" in power bi ask this question with microsoft community'&lt;BR /&gt;Following are the Calculated column DAX:&lt;BR /&gt;StatusCheckMeasure =&lt;BR /&gt;VAR SelectedYear = SELECTEDVALUE(PMOKPIManagement[PlanningYear]) // Get the selected year from the slicer&lt;BR /&gt;RETURN&lt;BR /&gt;IF (&lt;BR /&gt;NOT(ISBLANK(SelectedYear)) &amp;amp;&amp;amp; (SelectedYear - 1) = PMOKPIManagement[PlanningYear], // Check if selected year - 1 matches PlanningYear&lt;BR /&gt;IF(ISBLANK(PMOKPIManagement[ParentKPIId]), "New", "Forwarded"), // Check if ParentKPIId is blank&lt;BR /&gt;"New"&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;Following are Measure DAX:&lt;BR /&gt;StatusCheckMeasure =&lt;BR /&gt;VAR SelectedYear = SELECTEDVALUE('YourSlicerTable'[PlanningYear], 0) // Set default value to 0 if no selection or multiple selections&lt;BR /&gt;RETURN&lt;BR /&gt;IF (&lt;BR /&gt;SelectedYear = 0, // If no valid selection, return "No Selection"&lt;BR /&gt;"No Selection",&lt;BR /&gt;IF (&lt;BR /&gt;(SelectedYear - 1) = PMOKPIManagement[PlanningYear], // Check if selected year - 1 matches PlanningYear&lt;BR /&gt;IF(ISBLANK(PMOKPIManagement[ParentKPIId]), "New", "Forwarded"),&lt;BR /&gt;"New"&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;Desired output is KPIs of selected year are forwarded or new on the basis of ParentKPIId and previous year&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 17:28:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Compare-Selected-Year-with-Table-Column-and-Check-for/m-p/4815916#M184147</guid>
      <dc:creator>Basil-Ur-Rehman</dc:creator>
      <dc:date>2025-09-03T17:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI: Compare Selected Year with Table Column and Check for Blank Value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Compare-Selected-Year-with-Table-Column-and-Check-for/m-p/4815930#M184148</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1348491" data-lia-user-login="Basil-Ur-Rehman" class="lia-mention lia-mention-user"&gt;Basil-Ur-Rehman&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;what is your question? Is your DAX code not woring correctly? Can you show the issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Furthermore, if you want a fast solution,&lt;/P&gt;&lt;P&gt;please include, in a usable format, not an image, a small set of rows for each of the tables involved in your request and show the data model in a picture, so that we can import the tables in Power BI and reproduce the data model. The subset of rows you provide, even is just a subset of the original tables, must cover your issue or question completely. Alternatively, you can share your .pbix via some cloud service and paste the link here. Do not include sensitive information and do not include anything that is unrelated to the issue or question. Please show the expected outcome based on the sample data you provided and make sure, in case you show a Power BI visual, to clarify the columns used in the grouping sections of the visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;click here &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;click here &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 17:38:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Compare-Selected-Year-with-Table-Column-and-Check-for/m-p/4815930#M184148</guid>
      <dc:creator>FBergamaschi</dc:creator>
      <dc:date>2025-09-03T17:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI: Compare Selected Year with Table Column and Check for Blank Value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Compare-Selected-Year-with-Table-Column-and-Check-for/m-p/4815940#M184150</link>
      <description>&lt;P&gt;yes, as I put dax on calculated column it cannot have selected dropdown values and when i put in measure table column aren`t available&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 18:03:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Compare-Selected-Year-with-Table-Column-and-Check-for/m-p/4815940#M184150</guid>
      <dc:creator>Basil-Ur-Rehman</dc:creator>
      <dc:date>2025-09-03T18:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI: Compare Selected Year with Table Column and Check for Blank Value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Compare-Selected-Year-with-Table-Column-and-Check-for/m-p/4815942#M184151</link>
      <description>&lt;P&gt;Sorry but I do not understand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please show images and provide same data as I aske din the previous post&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 17:54:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Compare-Selected-Year-with-Table-Column-and-Check-for/m-p/4815942#M184151</guid>
      <dc:creator>FBergamaschi</dc:creator>
      <dc:date>2025-09-03T17:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI: Compare Selected Year with Table Column and Check for Blank Value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Compare-Selected-Year-with-Table-Column-and-Check-for/m-p/4816414#M184162</link>
      <description>&lt;P&gt;&lt;img /&gt;attached are the records of 2026 so it should be reflected as "forwarded" due to slicer`s value is 2027, or else if I change the slicer to 2026 it will reflect "new"&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 07:13:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Compare-Selected-Year-with-Table-Column-and-Check-for/m-p/4816414#M184162</guid>
      <dc:creator>Basil-Ur-Rehman</dc:creator>
      <dc:date>2025-09-04T07:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI: Compare Selected Year with Table Column and Check for Blank Value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Compare-Selected-Year-with-Table-Column-and-Check-for/m-p/4816602#M184171</link>
      <description>&lt;P&gt;Use a measure that reads the slicer year and classifies each row:&lt;/P&gt;
&lt;P&gt;StatusCheck :=&lt;BR /&gt;VAR SelYear = SELECTEDVALUE('YearTable'[PlanningYear]) -- slicer&lt;BR /&gt;RETURN&lt;BR /&gt;SWITCH(&lt;BR /&gt;TRUE(),&lt;BR /&gt;ISBLANK(SelYear), BLANK(),&lt;BR /&gt;PMOKPIManagement[PlanningYear] = SelYear&lt;BR /&gt;&amp;amp;&amp;amp; ISBLANK( PMOKPIManagement[ParentKPIId] ), "New",&lt;BR /&gt;PMOKPIManagement[PlanningYear] = SelYear&lt;BR /&gt;&amp;amp;&amp;amp; NOT ISBLANK( PMOKPIManagement[ParentKPIId] ), "Forwarded",&lt;BR /&gt;PMOKPIManagement[PlanningYear] = SelYear - 1, "Forwarded",&lt;BR /&gt;BLANK()&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If the row is in the selected year and ParentKPIId is blank ⇒ New.&lt;/P&gt;
&lt;P&gt;If the row is in the selected year and ParentKPIId is not blank ⇒ Forwarded.&lt;/P&gt;
&lt;P&gt;If the row is from previous year (SelYear-1) ⇒ Forwarded.&lt;/P&gt;
&lt;P&gt;To count:&lt;/P&gt;
&lt;P&gt;New KPIs :=&lt;BR /&gt;CALCULATE(&lt;BR /&gt;DISTINCTCOUNT(PMOKPIManagement[KPIId]),&lt;BR /&gt;FILTER(ALLSELECTED(PMOKPIManagement), [StatusCheck] = "New")&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;Forwarded KPIs :=&lt;BR /&gt;CALCULATE(&lt;BR /&gt;DISTINCTCOUNT(PMOKPIManagement[KPIId]),&lt;BR /&gt;FILTER(ALLSELECTED(PMOKPIManagement), [StatusCheck] = "Forwarded")&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Use StatusCheck in the table (or the two count measures in cards).&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 09:28:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Compare-Selected-Year-with-Table-Column-and-Check-for/m-p/4816602#M184171</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2025-09-04T09:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI: Compare Selected Year with Table Column and Check for Blank Value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Compare-Selected-Year-with-Table-Column-and-Check-for/m-p/4819406#M184229</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1348491" data-lia-user-login="Basil-Ur-Rehman" class="lia-mention lia-mention-user"&gt;Basil-Ur-Rehman&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for submitting your question to the Microsoft Fabric Community Forum.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you let us know if the suggested solution resolved your issue?If you still need help, please share more details so we can assist you further.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 04:46:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Compare-Selected-Year-with-Table-Column-and-Check-for/m-p/4819406#M184229</guid>
      <dc:creator>v-karpurapud</dc:creator>
      <dc:date>2025-09-08T04:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI: Compare Selected Year with Table Column and Check for Blank Value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Compare-Selected-Year-with-Table-Column-and-Check-for/m-p/4823418#M184334</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1348491" data-lia-user-login="Basil-Ur-Rehman" class="lia-mention lia-mention-user"&gt;Basil-Ur-Rehman&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;We have not received a response from you regarding the query and were following up to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 10:00:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Compare-Selected-Year-with-Table-Column-and-Check-for/m-p/4823418#M184334</guid>
      <dc:creator>v-karpurapud</dc:creator>
      <dc:date>2025-09-11T10:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI: Compare Selected Year with Table Column and Check for Blank Value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Compare-Selected-Year-with-Table-Column-and-Check-for/m-p/4825677#M184397</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1348491" data-lia-user-login="Basil-Ur-Rehman" class="lia-mention lia-mention-user"&gt;Basil-Ur-Rehman&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN data-teams="true"&gt;Just checking in as we haven't received a response to our previous message. Were you able to review the information above? Let us know if you have any additional questions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2025 03:38:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Compare-Selected-Year-with-Table-Column-and-Check-for/m-p/4825677#M184397</guid>
      <dc:creator>v-karpurapud</dc:creator>
      <dc:date>2025-09-15T03:38:35Z</dc:date>
    </item>
  </channel>
</rss>

