<?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: Need help on period measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-period-measure/m-p/3490559#M133638</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="403667" data-lia-user-login="123abc" class="lia-mention lia-mention-user"&gt;123abc&lt;/a&gt;&amp;nbsp; thanks for respond,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am expecting the "&lt;STRONG&gt;Expected" &lt;/STRONG&gt;Column in the image based on the condition, please find the below image for more details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected&lt;/STRONG&gt; =&amp;nbsp;&lt;SPAN&gt;If&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;TtValue&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;CummValue&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;then show that partcular catogory PValue else show&amp;nbsp;partcular catogory MAX&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;PValue&lt;/SPAN&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;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Oct 2023 06:57:48 GMT</pubDate>
    <dc:creator>VEERA3141</dc:creator>
    <dc:date>2023-10-23T06:57:48Z</dc:date>
    <item>
      <title>Need help on period measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-period-measure/m-p/3490298#M133599</link>
      <description>&lt;P&gt;Hi Team, could you please help on below senorio,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If &lt;/SPAN&gt;&lt;SPAN&gt;TtValue&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;CummValue&lt;/SPAN&gt;&lt;SPAN&gt; then show that partcular PValue else show MAX &lt;/SPAN&gt;&lt;SPAN&gt;PValue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="6799" data-lia-user-login="OwenAuger" class="lia-mention lia-mention-user"&gt;OwenAuger&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Veera&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 03:28:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-period-measure/m-p/3490298#M133599</guid>
      <dc:creator>VEERA3141</dc:creator>
      <dc:date>2023-10-23T03:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on period measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-period-measure/m-p/3490387#M133620</link>
      <description>&lt;P&gt;It looks like you're trying to create a measure in Power BI that calculates a specific value based on a condition. In your scenario, you want to compare the value of TtValue to CummValue and based on that condition, display either the PValue or the maximum PValue.&lt;/P&gt;&lt;P&gt;You can achieve this using a DAX (Data Analysis Expressions) measure in Power BI. Here's a step-by-step guide on how to create such a measure:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Open your Power BI report.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Go to the "Model" view by clicking on the "Model" icon in the left-hand panel.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;In the "Fields" pane, right-click on your table and select "New Measure." You can name your measure something like "Conditional PValue."&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;In the formula bar, you can use the following DAX formula:&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Conditional PValue =&lt;BR /&gt;IF([TtValue] &amp;lt; [CummValue], [PValue], CALCULATE(MAX([PValue]), ALL('YourTableName')))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Replace 'YourTableName' with the name of the table where your data is located. This formula uses the IF function to check whether TtValue is less than CummValue. If it is, it returns PValue. Otherwise, it calculates the maximum PValue for all rows in the table.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Press Enter to create the measure.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Now you can use the "Conditional PValue" measure in your report visuals. When you place this measure in a visual, it will display the desired result based on your conditions.&lt;/P&gt;&lt;P&gt;Remember to replace 'YourTableName' with the actual name of the table in your Power BI data model. Make sure your column and table names match the names in your data source.&lt;/P&gt;&lt;P&gt;If you have further questions or encounter any issues, please provide more specific details about your data structure and I'd be happy to assist further.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accepting it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In case there is still a problem, please feel free and explain your issue in detail,&amp;nbsp;It will be my pleasure to assist you in any way I can.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 05:10:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-period-measure/m-p/3490387#M133620</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2023-10-23T05:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on period measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-period-measure/m-p/3490544#M133635</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="634797" data-lia-user-login="VEERA3141" class="lia-mention lia-mention-user"&gt;VEERA3141&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not sure if i fully get you, try to add a calculated column like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Expected2 = 
VAR MaxPValue =
MAXX(
    FILTER(
        data,
        data[Category]= EARLIER(data[Category])
    ),
    data[PValue]
)
RETURN
IF([TtValue]&amp;lt;[CummValue], [Pvalue], MaxPValue)&lt;/LI-CODE&gt;&lt;P&gt;it worked like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 06:45:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-period-measure/m-p/3490544#M133635</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-10-23T06:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on period measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-period-measure/m-p/3490559#M133638</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="403667" data-lia-user-login="123abc" class="lia-mention lia-mention-user"&gt;123abc&lt;/a&gt;&amp;nbsp; thanks for respond,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am expecting the "&lt;STRONG&gt;Expected" &lt;/STRONG&gt;Column in the image based on the condition, please find the below image for more details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected&lt;/STRONG&gt; =&amp;nbsp;&lt;SPAN&gt;If&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;TtValue&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;CummValue&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;then show that partcular catogory PValue else show&amp;nbsp;partcular catogory MAX&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;PValue&lt;/SPAN&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 06:57:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-period-measure/m-p/3490559#M133638</guid>
      <dc:creator>VEERA3141</dc:creator>
      <dc:date>2023-10-23T06:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on period measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-period-measure/m-p/3490582#M133639</link>
      <description>&lt;P&gt;Hi&lt;SPAN&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp; thanks for respond,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am expecting the "&lt;STRONG&gt;Expected"&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;Column in the image based on the condition, please find the below image for more details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;=&amp;nbsp;&lt;SPAN&gt;If&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;TtValue&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;CummValue&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;then show that partcular catogory PValue else show&amp;nbsp;partcular catogory MAX&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;PValue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/403667" target="_blank"&gt;@123abc&lt;/A&gt;&amp;nbsp; thanks for respond,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am expecting the "&lt;STRONG&gt;Expected"&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;Column in the image based on the condition, please find the below image for more details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;=&amp;nbsp;&lt;SPAN&gt;If&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;TtValue&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;CummValue&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;then show that partcular catogory PValue else show&amp;nbsp;partcular catogory MAX&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;PValue&lt;/SPAN&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;</description>
      <pubDate>Mon, 23 Oct 2023 07:04:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-period-measure/m-p/3490582#M133639</guid>
      <dc:creator>VEERA3141</dc:creator>
      <dc:date>2023-10-23T07:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on period measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-period-measure/m-p/3490619#M133643</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="634797" data-lia-user-login="VEERA3141" class="lia-mention lia-mention-user"&gt;VEERA3141&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the proposed solution is based on your expectataion:&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;Expected&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;If&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;TtValue&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;CummValue&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;then show that partcular catogory PValue else show&amp;nbsp;partcular catogory MAX&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;PValue&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;however, it comes with different result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you also check the consistency of your description with your table?&lt;/P&gt;&lt;P&gt;For instance, for the row A, P1, TtValue &amp;gt; CummValue, so Max Pvalue of 9 should be returned, right?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 07:22:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-period-measure/m-p/3490619#M133643</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-10-23T07:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on period measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-period-measure/m-p/3490685#M133646</link>
      <description>&lt;P&gt;This is fine but how to get min values at catogory level by reusing the Expected 2 column&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 07:51:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-period-measure/m-p/3490685#M133646</guid>
      <dc:creator>VEERA3141</dc:creator>
      <dc:date>2023-10-23T07:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on period measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-period-measure/m-p/3490711#M133650</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="634797" data-lia-user-login="VEERA3141" class="lia-mention lia-mention-user"&gt;VEERA3141&lt;/a&gt;&amp;nbsp;, how would you use the min value?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 08:05:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-period-measure/m-p/3490711#M133650</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-10-23T08:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on period measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-period-measure/m-p/3490714#M133651</link>
      <description>&lt;P&gt;Got it calculate(min(expected 2), allecpect(table, cat))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 08:07:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-period-measure/m-p/3490714#M133651</guid>
      <dc:creator>VEERA3141</dc:creator>
      <dc:date>2023-10-23T08:07:10Z</dc:date>
    </item>
  </channel>
</rss>

