<?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: Calculate percent columns by several tables in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Calculate-percent-columns-by-several-tables/m-p/4252615#M57978</link>
    <description>&lt;P&gt;Dear&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know how to thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a calculated column with the same code and the % are perfect. Now I have to study your link because It's not yeat clear .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 22 Oct 2024 13:05:00 GMT</pubDate>
    <dc:creator>ND1979</dc:creator>
    <dc:date>2024-10-22T13:05:00Z</dc:date>
    <item>
      <title>Calculate percent columns by several tables</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculate-percent-columns-by-several-tables/m-p/4243175#M57865</link>
      <description>&lt;P&gt;Hello, I am new to Power BI environment, and I am learning on my own.&lt;/P&gt;&lt;P&gt;I would like to ask for your help to start creating my first reports.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case, I have 4 tables: Projects,Tasks,Timecards,User, where Projects are not directly connected to Timecards but they are directly connected to Tasks and then Taks is directly connected to Timecards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the tables are linked by a correct relation.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.jpg" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1183455i86A8FF730625B875/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.jpg" alt="Capture.jpg" /&gt;&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;Could you tell me the DAX functions to have,&amp;nbsp;for each project in the Projects table, a new column in Project table that has the calculation of the percentage of hours consumed (in table Timecard) compared to the estimated hours (in table Projects) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Projects has:&lt;/P&gt;&lt;P&gt;PR1 --&amp;gt;72 hours&lt;/P&gt;&lt;P&gt;PR2 --&amp;gt; 16 hours&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tasks has:&lt;/P&gt;&lt;P&gt;Task PR1 --&amp;gt; TASK1_1&lt;/P&gt;&lt;P&gt;Task PR1 --&amp;gt; TASK1_2&lt;/P&gt;&lt;P&gt;Task PR2 --&amp;gt; TASK2_1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Timecard has:&lt;/P&gt;&lt;P&gt;PR1--&amp;gt; 60 (total of timecard for all users) (SUM of all timecards of the task for PR1)&amp;nbsp;&lt;/P&gt;&lt;P&gt;PR2 --&amp;gt; 7&amp;nbsp;(total of timecard for all users)&amp;nbsp;(SUM of all timecards of the task for PR2)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the table Projects i'd like to have a new % column "PRC_CONSUMED" , that has the % of consumed time compared of the nominal project budget ,and use this value to create reports to monitor Project started, at limit of budget , etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Domenico&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 13:43:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculate-percent-columns-by-several-tables/m-p/4243175#M57865</guid>
      <dc:creator>ND1979</dc:creator>
      <dc:date>2024-10-15T13:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percent columns by several tables</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculate-percent-columns-by-several-tables/m-p/4243740#M57870</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question. &lt;BR /&gt;&lt;BR /&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;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&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;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 22:58:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculate-percent-columns-by-several-tables/m-p/4243740#M57870</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-10-15T22:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percent columns by several tables</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculate-percent-columns-by-several-tables/m-p/4244764#M57886</link>
      <description>&lt;P&gt;Unfortunately, I can't share any records, due to data confidentiality, but I put in a picture the real relationships between the tables.&lt;BR /&gt;I can also use a generic solution that I will then adapt to the current situation.&lt;/P&gt;&lt;P&gt;Thnaks a lot&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 11:57:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculate-percent-columns-by-several-tables/m-p/4244764#M57886</guid>
      <dc:creator>ND1979</dc:creator>
      <dc:date>2024-10-16T11:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percent columns by several tables</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculate-percent-columns-by-several-tables/m-p/4244770#M57887</link>
      <description>&lt;P&gt;If you cannot provide meaningful sample data I cannot assist you.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 12:03:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculate-percent-columns-by-several-tables/m-p/4244770#M57887</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-10-16T12:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percent columns by several tables</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculate-percent-columns-by-several-tables/m-p/4244840#M57888</link>
      <description>&lt;P&gt;Hi&amp;nbsp;lbendlin,&lt;/P&gt;&lt;P&gt;I I thought it was necessary the structure and the relation for a generic solution.&lt;/P&gt;&lt;P&gt;Thank you in cany case&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 12:38:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculate-percent-columns-by-several-tables/m-p/4244840#M57888</guid>
      <dc:creator>ND1979</dc:creator>
      <dc:date>2024-10-16T12:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percent columns by several tables</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculate-percent-columns-by-several-tables/m-p/4246330#M57898</link>
      <description>&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Thanks for the reply from lbendlin&amp;nbsp;, please allow me to provide another insight:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Hi,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/825387"&gt;@ND1979&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Regarding the issue you raised, my solution is as follows:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;1.First I have created the following table and the column names and data are the data you have given:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_0-1729157950009.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1184693i3DFD094671DCFAD6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_0-1729157950009.png" alt="vlinyulumsft_0-1729157950009.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_1-1729157950010.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1184692iDB1AE44C8469DB7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_1-1729157950010.png" alt="vlinyulumsft_1-1729157950010.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_2-1729157985234.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1184694i1C21ED8DB49AFD90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_2-1729157985234.png" alt="vlinyulumsft_2-1729157985234.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;2.Next create relationships between tables:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_3-1729157985234.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1184695i0862044E4DE3FC51/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_3-1729157985234.png" alt="vlinyulumsft_3-1729157985234.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;3.Create calculated column references:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;I created the following calculated column in the timecard table to compute the time difference.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;diff = DATEDIFF('Timecard'[start],'Timecard'[end],HOUR)
&lt;/LI-CODE&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;In the project table, I established a calculated column to facilitate the call and division.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sumofp = 
VAR cc =
    CALCULATE (
        SUM ( 'Timecard'[diff] ),
        FILTER (
            ALLSELECTED ( 'Timecard' ),
            'Timecard'[Projects] = EARLIER ( 'Projects'[Projects ] )
        )
    )
RETURN
    DIVIDE ( cc, 'Projects'[hour] )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Subsequently, I modified the data type of the calculated column.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_4-1729158042242.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1184697i3773B6F4EDA1B9AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_4-1729158042242.png" alt="vlinyulumsft_4-1729158042242.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;4.Here's my final result, which I hope meets your requirements.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_5-1729158042243.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1184696i6BA9BE73097E7EA7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_5-1729158042243.png" alt="vlinyulumsft_5-1729158042243.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please find the attached pbix relevant to the case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Leroy Lu&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps,&lt;/STRONG&gt;&lt;/EM&gt; then please consider Accept it &lt;EM&gt;&lt;STRONG&gt;as the solution &lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 09:41:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculate-percent-columns-by-several-tables/m-p/4246330#M57898</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-17T09:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percent columns by several tables</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculate-percent-columns-by-several-tables/m-p/4246669#M57905</link>
      <description>&lt;P&gt;Ciao and thank you so much for your help&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to your example, I realized this code (&amp;nbsp; explain why), but I have a strange error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;EVALUATE&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; cc =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&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; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt; ( 'Timecard'[Hour_Time_Card] ),&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;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; &lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt; ( 'Timecard' ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Timecard'[project_id] = &lt;/SPAN&gt;&lt;SPAN&gt;EARLIER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;('Projects'[id]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&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;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt; ( cc, &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;('Projects'[estimated_hours]))&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;&lt;SPAN&gt;On the table Timecards, I have the field &lt;STRONG&gt;Hour_Time_Card&lt;/STRONG&gt; that has the number of hour inserted for a specific task of the project , so I avoided to calculate dthe variable 'diff' and I used the existing field&amp;nbsp;&lt;STRONG&gt;Hour_Time_Card&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I understood that the CALCULATE&amp;nbsp; function sum all hours for a project_id , doing a join with the Projects table by the FILTER function.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The DIVIDE calclulate the percentage.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Now, I have this error and I don't understand what it means:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Query (7, 38) EARLIER/EARLIEST refers to an earlier row context which doesn't exist.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thnaks in advance for any help.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Domenico&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Oct 2024 13:46:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculate-percent-columns-by-several-tables/m-p/4246669#M57905</guid>
      <dc:creator>ND1979</dc:creator>
      <dc:date>2024-10-17T13:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percent columns by several tables</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculate-percent-columns-by-several-tables/m-p/4247679#M57913</link>
      <description>&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Hi,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/825387"&gt;@ND1979&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Based on the DAX you provided, I suspect the issue may stem from your use of the EARLIER() function alongside the ALL() function. I suggest removing the ALL() function to see if that resolves the problem.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_1-1729231753533.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1185203iE16BD5C287900436/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_1-1729231753533.png" alt="vlinyulumsft_1-1729231753533.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;It’s also worth considering that differing table relationships could directly impact the output results.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;The reason I use EARLIER() is to establish a connection between the associated fields of the two tables, allowing for data grouping and summation.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/earlier-function-dax" target="_blank"&gt;&lt;SPAN&gt;EARLIER function (DAX) - DAX | Microsoft Learn&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;I hope my explanation is clear enough. If you have any further questions, please feel free to reach out to us.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Leroy Lu&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider Accept it &lt;EM&gt;&lt;STRONG&gt;as the solution &lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 06:10:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculate-percent-columns-by-several-tables/m-p/4247679#M57913</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-18T06:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percent columns by several tables</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculate-percent-columns-by-several-tables/m-p/4250517#M57951</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/725329" target="_blank"&gt;@v-linyulu-msft&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks a lot for your feedback.&lt;/P&gt;&lt;P&gt;I used ALL because PowerBI DAX query said that the table\field does not exist and it's not true, as you can see in this screenhot. With ALL, i can select the table\field but then the result is always the same&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1186344iD00722D0720A4061/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 09:42:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculate-percent-columns-by-several-tables/m-p/4250517#M57951</guid>
      <dc:creator>ND1979</dc:creator>
      <dc:date>2024-10-21T09:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percent columns by several tables</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculate-percent-columns-by-several-tables/m-p/4251756#M57961</link>
      <description>&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Hi,&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/825387"&gt;@ND1979&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you for your prompt response.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;I’m pleased to see that you are using the DAX query view for testing; it’s indeed a good method of validation. However, please note that the results returned in the query view are presented as a table, whereas the code I provided is context-based.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Here are the results I obtained in the table view on my desktop:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_0-1729565143070.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1186808iBE7165421EDF47E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_0-1729565143070.png" alt="vlinyulumsft_0-1729565143070.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;And here are the results from the DAX query view:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_1-1729565143071.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1186809i80AA64ED7D3677BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_1-1729565143071.png" alt="vlinyulumsft_1-1729565143071.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;For further details, please refer to:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="https://powerbi.microsoft.com/en-us/blog/deep-dive-into-dax-query-view-and-writing-dax-queries/" target="_blank"&gt;&lt;SPAN&gt;Deep dive into DAX query view and writing DAX queries | Microsoft Power BI Blog | Microsoft Power BI&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/dax-query-view" target="_blank"&gt;&lt;SPAN&gt;DAX query view - Power BI | Microsoft Learn&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Given the similarity to your erroneous results, I recommend creating a new calculated column.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_9-1729565253709.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1186818i6DF924134E0A34ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_9-1729565253709.png" alt="vlinyulumsft_9-1729565253709.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Even if you don’t use it later, you can easily delete it by right-clicking.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_10-1729565253713.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1186817iC18CB110E38D0981/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_10-1729565253713.png" alt="vlinyulumsft_10-1729565253713.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Moreover, calculated tables and columns, including measures, do not affect the original data. They are not visible in Power Query, which serves as the best evidence of this. Therefore, you need not worry about creating unnecessary DAX expressions impacting your future work.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_13-1729565309154.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1186822iFCD0B4D8ED0F4EF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_13-1729565309154.png" alt="vlinyulumsft_13-1729565309154.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;I hope my response is clear enough to help you understand the reasons behind the issue.If you have any further questions, feel free to ask!&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Leroy Lu&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;If this post&lt;EM&gt;&lt;STRONG&gt; helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider Accept it &lt;EM&gt;&lt;STRONG&gt;as the solution&lt;/STRONG&gt; &lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 02:49:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculate-percent-columns-by-several-tables/m-p/4251756#M57961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-22T02:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percent columns by several tables</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculate-percent-columns-by-several-tables/m-p/4252615#M57978</link>
      <description>&lt;P&gt;Dear&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know how to thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a calculated column with the same code and the % are perfect. Now I have to study your link because It's not yeat clear .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 13:05:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculate-percent-columns-by-several-tables/m-p/4252615#M57978</guid>
      <dc:creator>ND1979</dc:creator>
      <dc:date>2024-10-22T13:05:00Z</dc:date>
    </item>
  </channel>
</rss>

