<?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: DAX formula in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4032495#M159554</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;On this small example, this formula works perfectly, but it doesn't take the date into account at all. When I apply this sample and a larger amount of data where each employee (NAME) enters different shifts each weekday and month, I get the same result everywhere. Can I please still incorporate date counting into this formula? So that it does what this formula does, just for each day separately.&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2024 12:10:09 GMT</pubDate>
    <dc:creator>V3Rn3r_8-6</dc:creator>
    <dc:date>2024-07-09T12:10:09Z</dc:date>
    <item>
      <title>DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4023112#M158752</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Each row is a single order that was made during a shift that is visible in the "Směna 45-45" column on a specific day that is visible in the "Datum ZN" column and by a specific person by name in the "Name" column. In the "Total Orders on shift" column you can see how many orders occurred in the same shift. I need the "real shift" column to show the letter "R", "O" or "N" in each row depending on which shift had the most orders for that day and that person. That is, in this case, the "Směna 45-45" column would have the letters "N" in each row.&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;Thank you very much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 14:46:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4023112#M158752</guid>
      <dc:creator>V3Rn3r_8-6</dc:creator>
      <dc:date>2024-07-03T14:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4023941#M158823</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="770041" data-lia-user-login="V3Rn3r_8-6" class="lia-mention lia-mention-user"&gt;V3Rn3r_8-6&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try the following measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;HReal = 
VAR select_date =
    SELECTEDVALUE ( 'Table'[Datum ZN] )
VAR select_smena =
    SELECTEDVALUE ( 'Table'[Smena 45-45] )
RETURN
    IF (
        CALCULATE (
            SUM ( 'Table'[Total Orders on shift] ),
            FILTER (
                ALL ( 'Table' ),
                'Table'[Datum ZN] = select_date
                    &amp;amp;&amp;amp; 'Table'[Smena 45-45] = "O"
            )
        )
            &amp;gt; CALCULATE (
                SUM ( 'Table'[Total Orders on shift] ),
                FILTER (
                    ALL ( 'Table' ),
                    'Table'[Datum ZN] = select_date
                        &amp;amp;&amp;amp; 'Table'[Smena 45-45] = "N"
                )
            ),
        "O",
        IF (
            CALCULATE (
                SUM ( 'Table'[Total Orders on shift] ),
                FILTER (
                    ALL ( 'Table' ),
                    'Table'[Datum ZN] = select_date
                        &amp;amp;&amp;amp; 'Table'[Smena 45-45] = "N"
                )
            )
                &amp;gt; CALCULATE (
                    SUM ( 'Table'[Total Orders on shift] ),
                    FILTER (
                        ALL ( 'Table' ),
                        'Table'[Datum ZN] = select_date
                            &amp;amp;&amp;amp; 'Table'[Smena 45-45] = "R"
                    )
                ),
            "N",
            "R"
        )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 02:06:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4023941#M158823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-04T02:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4024652#M158866</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you very much for your help, only in this case it always returns "R" because every day most orders are always made on the morning shift. I would need if it would be possible to use another column with the names of the people, so that the shift is listed separately for each of them. If someone has a night shift and makes an order on the afternoon shift, have this formula list the night shift everywhere as I wrote before and do the same for different people and different shifts.&lt;/P&gt;&lt;P&gt;("R" morning shift, "O" afternoon shift, "N" night shift)&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 08:58:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4024652#M158866</guid>
      <dc:creator>V3Rn3r_8-6</dc:creator>
      <dc:date>2024-07-04T08:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4025839#M158947</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="770041" data-lia-user-login="V3Rn3r_8-6" class="lia-mention lia-mention-user"&gt;V3Rn3r_8-6&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide sample data&amp;nbsp;that fully covers your issue and the expected outcome based on the sample data you provided.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 00:55:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4025839#M158947</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-05T00:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4030566#M159368</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Here is an example for what I need, unfortunately just a screen, I haven't figured out how to paste (.pbix). The idea is to list the real shift of a given person on a given day in the Real Shift column. The shifts are counted by eight hours: R = Morning shift 6:00-14:00, O = Midday shift 14:00-22:00 and N Night shift 22:00-6:00. He always makes more warrants for his shift than before or after it, it is max about 1-2 warrants, so depending on which shift he has made the most after calculating in the "Shift" column, it will be written in the "Real Shift" column and so I will achieve that there will be only one shift per person per day. In this example Peter has 1xO and 5xN in the "Shift" column and so he will have 6xN in the "Real Shift" column, Honza has 2xN, 9xR and 1xO and so he will have 12xR in the "Real shift" column , ......&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 14:48:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4030566#M159368</guid>
      <dc:creator>V3Rn3r_8-6</dc:creator>
      <dc:date>2024-07-08T14:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4031179#M159433</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="770041" data-lia-user-login="V3Rn3r_8-6" class="lia-mention lia-mention-user"&gt;V3Rn3r_8-6&lt;/a&gt;&amp;nbsp;, in order to share&amp;nbsp;your work-in-progress Power BI Desktop file (with sensitive information removed) and any source files in Excel format that fully address your issue or question in a usable format (not as a screenshot). You can upload these files to a cloud storage service such as OneDrive, Google Drive, Dropbox, or to a Github repository, and then provide the file's URL.&lt;/P&gt;
&lt;P style="color: darkblue;"&gt;&lt;EM&gt;If your requirement is solved, please make THIS ANSWER a SOLUTION &lt;/EM&gt;&lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;EM&gt; and help other users find the solution quickly. Please hit the LIKE &lt;/EM&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;EM&gt; button if this comment helps you.&amp;nbsp; &amp;nbsp;Proud to be a Super User!&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 22:41:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4031179#M159433</guid>
      <dc:creator>foodd</dc:creator>
      <dc:date>2024-07-08T22:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4032092#M159479</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="770041" data-lia-user-login="V3Rn3r_8-6" class="lia-mention lia-mention-user"&gt;V3Rn3r_8-6&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try the following dax:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Real = 
VAR select_name =
    SELECTEDVALUE ( 'Table'[Name] )
VAR select_shift =
    SELECTEDVALUE ( 'Table'[Shift] )
VAR _count = CALCULATE(COUNTROWS('Table'),FILTER(ALL('Table'),'Table'[Name]=select_name))
RETURN
    IF (
        CALCULATE (
            SUM ( 'Table'[Total Orders on shift] ),
            FILTER (
                ALL ( 'Table' ),
                'Table'[Name] = select_name
                    &amp;amp;&amp;amp; 'Table'[Shift] = "O"
            )
        )
            &amp;gt; CALCULATE (
                SUM ( 'Table'[Total Orders on shift] ),
                FILTER (
                    ALL ( 'Table' ),
                    'Table'[Name] = select_name
                        &amp;amp;&amp;amp; 'Table'[Shift] = "N"
                )
            ),
        _count&amp;amp;"x"&amp;amp;"O",
        IF (
            CALCULATE (
                SUM ( 'Table'[Total Orders on shift] ),
                FILTER (
                    ALL ( 'Table' ),
                    'Table'[Name] = select_name
                        &amp;amp;&amp;amp; 'Table'[Shift] = "N"
                )
            )
                &amp;gt; CALCULATE (
                    SUM ( 'Table'[Total Orders on shift] ),
                    FILTER (
                        ALL ( 'Table' ),
                        'Table'[Name] = select_name
                            &amp;amp;&amp;amp; 'Table'[Shift] = "R"
                    )
                ),
            _count&amp;amp;"x"&amp;amp;"N",
            _count&amp;amp;"x"&amp;amp;"R"
        )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 08:33:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4032092#M159479</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-09T08:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4032495#M159554</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;On this small example, this formula works perfectly, but it doesn't take the date into account at all. When I apply this sample and a larger amount of data where each employee (NAME) enters different shifts each weekday and month, I get the same result everywhere. Can I please still incorporate date counting into this formula? So that it does what this formula does, just for each day separately.&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 12:10:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4032495#M159554</guid>
      <dc:creator>V3Rn3r_8-6</dc:creator>
      <dc:date>2024-07-09T12:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4033324#M159661</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="770041" data-lia-user-login="V3Rn3r_8-6" class="lia-mention lia-mention-user"&gt;V3Rn3r_8-6&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please try the following DAX:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Real = 
VAR select_name =
    SELECTEDVALUE ( 'Table'[Name] )
VAR select_shift =
    SELECTEDVALUE ( 'Table'[Shift] )
VAR select_date = 
    SELECTEDVALUE ( 'Table'[Date] )
VAR _count = CALCULATE(COUNTROWS('Table'),FILTER(ALL('Table'),'Table'[Name]=select_name&amp;amp;&amp;amp;'Table'[Date]=select_date))
RETURN
    IF (
        CALCULATE (
            SUM ( 'Table'[Total Orders on shift] ),
            FILTER (
                ALL ( 'Table' ),
                'Table'[Name] = select_name
                    &amp;amp;&amp;amp; 'Table'[Shift] = "O" &amp;amp;&amp;amp;'Table'[Date]=select_date
            )
        )
            &amp;gt; CALCULATE (
                SUM ( 'Table'[Total Orders on shift] ),
                FILTER (
                    ALL ( 'Table' ),
                    'Table'[Name] = select_name
                        &amp;amp;&amp;amp; 'Table'[Shift] = "N" &amp;amp;&amp;amp;'Table'[Date]=select_date
                )
            ),
        _count&amp;amp;"x"&amp;amp;"O",
        IF (
            CALCULATE (
                SUM ( 'Table'[Total Orders on shift] ),
                FILTER (
                    ALL ( 'Table' ),
                    'Table'[Name] = select_name
                        &amp;amp;&amp;amp; 'Table'[Shift] = "N" &amp;amp;&amp;amp;'Table'[Date]=select_date
                )
            )
                &amp;gt; CALCULATE (
                    SUM ( 'Table'[Total Orders on shift] ),
                    FILTER (
                        ALL ( 'Table' ),
                        'Table'[Name] = select_name
                            &amp;amp;&amp;amp; 'Table'[Shift] = "R" &amp;amp;&amp;amp;'Table'[Date]=select_date
                    )
                ),
            _count&amp;amp;"x"&amp;amp;"N",
            _count&amp;amp;"x"&amp;amp;"R"
        )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 00:53:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4033324#M159661</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-10T00:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4034932#M159878</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Please, when I apply this formula to my spreadsheet, I get the same result in all rows, namely "xR". What could be the error?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 14:38:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4034932#M159878</guid>
      <dc:creator>V3Rn3r_8-6</dc:creator>
      <dc:date>2024-07-10T14:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4035758#M159928</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="770041" data-lia-user-login="V3Rn3r_8-6" class="lia-mention lia-mention-user"&gt;V3Rn3r_8-6&lt;/a&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please provide sample data&amp;nbsp;that fully covers your issue and the expected outcome based on the sample data you provided.(In the form of a table or PBIX file, not a screenshot)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 00:57:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4035758#M159928</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-11T00:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4042584#M160328</link>
      <description>&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1HI8PfesdkneNfe271IKbFK68xtvh22ei/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1HI8PfesdkneNfe271IKbFK68xtvh22ei/view?usp=sharing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 13:25:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4042584#M160328</guid>
      <dc:creator>V3Rn3r_8-6</dc:creator>
      <dc:date>2024-07-15T13:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4043897#M160392</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="770041" data-lia-user-login="V3Rn3r_8-6" class="lia-mention lia-mention-user"&gt;V3Rn3r_8-6&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Use measure instead of calculate column, pbix file attached.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&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;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 08:24:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4043897#M160392</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-16T08:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4050778#M160727</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Please, could it be done so that the calculation is in a new column in Table view instead of the way it is now as a new measurement? The way it is, when I apply it to the original table, it takes too long to load because of the large amount of data and especially I need to use this result to filter different data&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 13:09:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4050778#M160727</guid>
      <dc:creator>V3Rn3r_8-6</dc:creator>
      <dc:date>2024-07-19T13:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4052816#M160824</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="770041" data-lia-user-login="V3Rn3r_8-6" class="lia-mention lia-mention-user"&gt;V3Rn3r_8-6&lt;/a&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;Please try the following calculate column:&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Realllll = 
VAR _count = CALCULATE(COUNTROWS('Table'),FILTER(ALL('Table'),'Table'[Name]=EARLIER('Table'[Name])&amp;amp;&amp;amp;'Table'[Date]=EARLIER('Table'[Date])))
RETURN
    IF (
        CALCULATE (
            SUM ( 'Table'[Total Orders on shift] ),
            FILTER (
                ALL ( 'Table' ),
                'Table'[Name] = EARLIER('Table'[Name])
                    &amp;amp;&amp;amp; 'Table'[Shift] = "O" &amp;amp;&amp;amp;'Table'[Date]=EARLIER('Table'[Date])
            )
        )
            &amp;gt; CALCULATE (
                SUM ( 'Table'[Total Orders on shift] ),
                FILTER (
                    ALL ( 'Table' ),
                    'Table'[Name] = EARLIER('Table'[Name])
                        &amp;amp;&amp;amp; 'Table'[Shift] = "N" &amp;amp;&amp;amp;'Table'[Date]=EARLIER('Table'[Date])
                )
            ),
        _count&amp;amp;"x"&amp;amp;"O",
        IF (
            CALCULATE (
                SUM ( 'Table'[Total Orders on shift] ),
                FILTER (
                    ALL ( 'Table' ),
                    'Table'[Name] = EARLIER('Table'[Name])
                        &amp;amp;&amp;amp; 'Table'[Shift] = "N" &amp;amp;&amp;amp;'Table'[Date]=EARLIER('Table'[Date])
                )
            )
                &amp;gt; CALCULATE (
                    SUM ( 'Table'[Total Orders on shift] ),
                    FILTER (
                        ALL ( 'Table' ),
                        'Table'[Name] = EARLIER('Table'[Name])
                            &amp;amp;&amp;amp; 'Table'[Shift] = "R" &amp;amp;&amp;amp;'Table'[Date]=EARLIER('Table'[Date])
                    )
                ),
            _count&amp;amp;"x"&amp;amp;"N",
            _count&amp;amp;"x"&amp;amp;"R"
        )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 02:36:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4052816#M160824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-22T02:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4054138#M160890</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This is just what I needed, you're absolutely brilliant, thank you very much.&lt;/P&gt;&lt;P&gt;Great job, I'll be praising you everywhere.&lt;/P&gt;&lt;P&gt;Thank you very much again&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 14:07:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4054138#M160890</guid>
      <dc:creator>V3Rn3r_8-6</dc:creator>
      <dc:date>2024-07-22T14:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4621181#M176873</link>
      <description>&lt;P&gt;Create a measure using the below forumula&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Popular_Order = &lt;/SPAN&gt;&lt;SPAN&gt;Var&lt;/SPAN&gt;&lt;SPAN&gt; dt=&lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;('Table'[Datum ZN])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var&lt;/SPAN&gt;&lt;SPAN&gt; pop_order=&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;('Table'[Total Orders on shift]),'Table'[Datum ZN]=dt,&lt;/SPAN&gt;&lt;SPAN&gt;ALLEXCEPT&lt;/SPAN&gt;&lt;SPAN&gt;('Table','Table'[Datum ZN]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Table'[Smena 45-45]),'Table'[Total Orders on shift]=pop_order,&lt;/SPAN&gt;&lt;SPAN&gt;ALLEXCEPT&lt;/SPAN&gt;&lt;SPAN&gt;('Table','Table'[Datum ZN]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 23 Mar 2025 10:07:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula/m-p/4621181#M176873</guid>
      <dc:creator>Sailakshmi</dc:creator>
      <dc:date>2025-03-23T10:07:42Z</dc:date>
    </item>
  </channel>
</rss>

