<?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: Write logic for Calculated Column or Measure in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Write-logic-for-Calculated-Column-or-Measure/m-p/4994897#M64436</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/487628"&gt;@manojk_pbi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for sharing the update&lt;BR /&gt;&lt;BR /&gt;Everything is actually working as expected now. The reason you were seeing a value of 2 earlier is that the visual was automatically summing the column after multiple related rows from the Lesson Learned Status table were pulled in&amp;nbsp; LLID 1 has more than one related status, so the value 1 was counted more than once. After switching the field to Don’t summarize, the table correctly shows the result per lesson learned: 1 when at least one related status record exists, and 0 when it doesn’t.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Feb 2026 11:40:12 GMT</pubDate>
    <dc:creator>v-menakakota</dc:creator>
    <dc:date>2026-02-04T11:40:12Z</dc:date>
    <item>
      <title>Write logic for Calculated Column or Measure</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Write-logic-for-Calculated-Column-or-Measure/m-p/4988225#M64415</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 tables recording the details for lessonsLearned in the process and another one is record lessonlearned related activity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a calculated column in lessonlearned table or a new table with all necessary details to use it for reporting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions are well appreciated. Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LessonLearned&lt;/STRONG&gt; table contains&amp;nbsp;&lt;/P&gt;&lt;P&gt;LLID is unique key between both the tables.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;LLID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Milestone&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;StatusUpdated&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;L1&lt;/TD&gt;&lt;TD&gt;M1&lt;/TD&gt;&lt;TD&gt;02-Dec-2025&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;L2&lt;/TD&gt;&lt;TD&gt;M2&lt;/TD&gt;&lt;TD&gt;02-Dec-2025&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;L3&lt;/TD&gt;&lt;TD&gt;M5&lt;/TD&gt;&lt;TD&gt;02-Aug-2025&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;L4&lt;/TD&gt;&lt;TD&gt;M5&lt;/TD&gt;&lt;TD&gt;02-Jun-2025&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;L5&lt;/TD&gt;&lt;TD&gt;M5&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;02-Jul-2025&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;STRONG&gt;Lesson Learned Status&lt;/STRONG&gt; table contains&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;LLID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;CurrentState&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;LastUpdate&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;DueDate&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;L3&lt;/TD&gt;&lt;TD&gt;WIP&lt;/TD&gt;&lt;TD&gt;02-Jan-2026&lt;/TD&gt;&lt;TD&gt;31-Jan-2026&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;L4&lt;/TD&gt;&lt;TD&gt;WIP&lt;/TD&gt;&lt;TD&gt;02-Dec-2025&lt;/TD&gt;&lt;TD&gt;02-Dec-2025&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;L5&lt;/TD&gt;&lt;TD&gt;DONE&lt;/TD&gt;&lt;TD&gt;02-Jul-2025&lt;/TD&gt;&lt;TD&gt;02-Jul-2025&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;STRONG&gt;Output e&lt;/STRONG&gt;xpected used for visualization or automation&amp;nbsp;&lt;/P&gt;&lt;P&gt;for Milestone M4/M5 need to check the LLID present in status table, if present mark it as &lt;STRONG&gt;Yes.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;OpenAgeing : Calculate the ageing using DueDate and CurrentState (=WIP)&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;LLID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Milestone&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;StatusUpdated&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;EntryInERP&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Open Ageing&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;L1&lt;/TD&gt;&lt;TD&gt;M1&lt;/TD&gt;&lt;TD&gt;02-Dec-2025&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;L2&lt;/TD&gt;&lt;TD&gt;M2&lt;/TD&gt;&lt;TD&gt;02-Dec-2025&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;L3&lt;/TD&gt;&lt;TD&gt;M5&lt;/TD&gt;&lt;TD&gt;02-Aug-2025&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;3 days&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;L4&lt;/TD&gt;&lt;TD&gt;M5&lt;/TD&gt;&lt;TD&gt;02-Jun-2025&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;60 days&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;L5&lt;/TD&gt;&lt;TD&gt;M5&lt;/TD&gt;&lt;TD&gt;02-Jul-2025&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 02 Feb 2026 09:01:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Write-logic-for-Calculated-Column-or-Measure/m-p/4988225#M64415</guid>
      <dc:creator>manojk_pbi</dc:creator>
      <dc:date>2026-02-02T09:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Write logic for Calculated Column or Measure</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Write-logic-for-Calculated-Column-or-Measure/m-p/4989070#M64417</link>
      <description>&lt;H3 data-start="197" data-end="268"&gt;&lt;STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;1) EntryInERP&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P data-start="269" data-end="318"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;Create this calculated column in&amp;nbsp;LessonLearned:&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;EntryInERP =
VAR HasStatus =
    CALCULATE (
        COUNTROWS ( 'Lesson Learned Status' ),
        'Lesson Learned Status'[LLID] = LessonLearned[LLID]
    ) &amp;gt; 0
RETURN
IF (
    LessonLearned[Milestone] IN { "M4", "M5" } &amp;amp;&amp;amp; HasStatus,
    "Yes",
    BLANK ()
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 data-start="599" data-end="648"&gt;&lt;STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;2) Open Ageing&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;LI-CODE lang="markup"&gt;Open Ageing =
VAR State =
    LOOKUPVALUE (
        'Lesson Learned Status'[CurrentState],
        'Lesson Learned Status'[LLID], LessonLearned[LLID]
    )
VAR DueDate =
    LOOKUPVALUE (
        'Lesson Learned Status'[DueDate],
        'Lesson Learned Status'[LLID], LessonLearned[LLID]
    )
VAR LastUpdate =
    LOOKUPVALUE (
        'Lesson Learned Status'[LastUpdate],
        'Lesson Learned Status'[LLID], LessonLearned[LLID]
    )
VAR Days =
    IF ( State = "WIP" &amp;amp;&amp;amp; NOT ISBLANK ( DueDate ) &amp;amp;&amp;amp; NOT ISBLANK ( LastUpdate ),
        DATEDIFF ( LastUpdate, DueDate, DAY )
    )
RETURN
IF ( NOT ISBLANK ( Days ), Days &amp;amp; " days" )&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 02 Feb 2026 09:43:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Write-logic-for-Calculated-Column-or-Measure/m-p/4989070#M64417</guid>
      <dc:creator>cengizhanarslan</dc:creator>
      <dc:date>2026-02-02T09:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Write logic for Calculated Column or Measure</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Write-logic-for-Calculated-Column-or-Measure/m-p/4989382#M64419</link>
      <description>&lt;P&gt;Thanks for your reply. I am getting error when i add EntryInERP calculated column. I am not getting the table LessonLearned while setting the value to HasStatus.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2026 10:04:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Write-logic-for-Calculated-Column-or-Measure/m-p/4989382#M64419</guid>
      <dc:creator>manojk_pbi</dc:creator>
      <dc:date>2026-02-02T10:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Write logic for Calculated Column or Measure</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Write-logic-for-Calculated-Column-or-Measure/m-p/4994345#M64434</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/487628"&gt;@manojk_pbi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to the Microsoft fabric community forum.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This error usually occurs due to a table name or column context mismatch. Please verify the exact name of the table in the Fields pane. If the table name contains spaces (for example, Lesson Learned instead of LessonLearned).&lt;/P&gt;
&lt;P&gt;Additionally, please check whether a relationship exists between Lesson Learned and Lesson Learned Status on LLID. If the relationship is missing or inactive, the calculation may not work as expected.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 05:39:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Write-logic-for-Calculated-Column-or-Measure/m-p/4994345#M64434</guid>
      <dc:creator>v-menakakota</dc:creator>
      <dc:date>2026-02-04T05:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Write logic for Calculated Column or Measure</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Write-logic-for-Calculated-Column-or-Measure/m-p/4994507#M64435</link>
      <description>&lt;P&gt;I am getting below error when added as column. Pls advice me what is wrong here&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="manojk_pbi_0-1770194125361.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1324540i5696018EF6A61925/image-size/medium?v=v2&amp;amp;px=400" role="button" title="manojk_pbi_0-1770194125361.png" alt="manojk_pbi_0-1770194125361.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 08:35:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Write-logic-for-Calculated-Column-or-Measure/m-p/4994507#M64435</guid>
      <dc:creator>manojk_pbi</dc:creator>
      <dc:date>2026-02-04T08:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Write logic for Calculated Column or Measure</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Write-logic-for-Calculated-Column-or-Measure/m-p/4994897#M64436</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/487628"&gt;@manojk_pbi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for sharing the update&lt;BR /&gt;&lt;BR /&gt;Everything is actually working as expected now. The reason you were seeing a value of 2 earlier is that the visual was automatically summing the column after multiple related rows from the Lesson Learned Status table were pulled in&amp;nbsp; LLID 1 has more than one related status, so the value 1 was counted more than once. After switching the field to Don’t summarize, the table correctly shows the result per lesson learned: 1 when at least one related status record exists, and 0 when it doesn’t.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 11:40:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Write-logic-for-Calculated-Column-or-Measure/m-p/4994897#M64436</guid>
      <dc:creator>v-menakakota</dc:creator>
      <dc:date>2026-02-04T11:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Write logic for Calculated Column or Measure</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Write-logic-for-Calculated-Column-or-Measure/m-p/4995168#M64438</link>
      <description>&lt;P&gt;Thanks for your explanation and sample. Helps lot..&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 12:39:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Write-logic-for-Calculated-Column-or-Measure/m-p/4995168#M64438</guid>
      <dc:creator>manojk_pbi</dc:creator>
      <dc:date>2026-02-04T12:39:48Z</dc:date>
    </item>
  </channel>
</rss>

