<?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 with this fromula in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4075099#M161791</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;For your question, we tried to do it using two calculation columns to meet the requirement, the first calculation column to find the change in quantity and percentage, and then the second calculation column to find the new value and multiply them by the price value based on "month" and "cut", hope this helps you! I hope this helps, if there are any other questions, please contact me at the first time, I will continue to help you answer.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Adjusted Quantity = 'combined_data'[Quantity]*(1+'combined_data'[Percent Change]/100)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;New value = 'combined_data'[Adjusted Quantity]*
CALCULATE(
    MAX('combined_data'[Price]),
FILTER('combined_data',
'combined_data'[Cut]=EARLIER('combined_data'[Cut])&amp;amp;&amp;amp;'combined_data'[Month]=EARLIER('combined_data'[Month])
)
)&lt;/LI-CODE&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;img /&gt;
&lt;P&gt;Hope it helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Tom Shen&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 02 Aug 2024 05:38:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-08-02T05:38:52Z</dc:date>
    <item>
      <title>Need help with this fromula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4071720#M161658</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to do something for a project and am having immense trouble. So I have an SQL file with over 7,000,000 records, and some of them contain weights, which are labeled as quantity. These same records with quantity also are classificied into 4 different categories. These four categories all cost different amounts every month, so I have a seperate excel file titled price entry with 48 rows, one seperate price for each month of each classification. I am trying to take the individual quantities and multiply them all by a selected&amp;nbsp; increase/decrease value, and then take those new quantity values and have that new quantity number multiply by one of the 48 price values in the table and then sum the new price into one easy measure. I currentl;y have been able to do it in columns but the problem is I am unable to change the quantity at all the way id like to in a table. Is there a way to make a measure that can do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically&amp;nbsp;&lt;/P&gt;&lt;P&gt;((Quantity Value) * (1 + % change)) * (one of 48 price values based on month and one of the 4 criteria values)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then have the final value be a sum of all the new prices with the applied % change and price for month and criteria.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 15:32:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4071720#M161658</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-31T15:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this fromula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4071494#M161688</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to do something for a project and am having immense trouble. So I have an SQL file with over 7,000,000 records, and some of them contain weights, which are labeled as quantity. These same records with quantity also are classificied into 4 different categories. These four categories all cost different amounts every month, so I have a seperate excel file titled price entry with 48 rows, one seperate price for each month of each classification. I am trying to take the individual quantities and multiply them all by a selected&amp;nbsp; increase/decrease value, and then take those new quantity values and have that new quantity number multiply by one of the 48 price values in the table and then sum the new price into one easy measure. I currentl;y have been able to do it in columns but the problem is I am unable to change the quantity at all the way id like to in a table. Is there a way to make a measure that can do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically&amp;nbsp;&lt;/P&gt;&lt;P&gt;((Quantity Value) * (1 + % change)) * (one of 48 price values based on month and one of the 4 criteria values)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then have the final value be a sum of all the new prices with the applied % change and price for month and criteria.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 14:03:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4071494#M161688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-31T14:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this fromula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4072619#M161682</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;For the problem you are experiencing, the use of temporary tables can solve your needs. Temporary tables can be used to dynamically adjust quantities and calculate new price values without changing the original data.&lt;/P&gt;
&lt;P&gt;Below is an example of my data that I hope will help you.&lt;/P&gt;
&lt;P&gt;1.declaration of percentage change variables, e.g., 5 per cent increase&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DECLARE @percentage_change DECIMAL(5, 2) = 0.05;&lt;/LI-CODE&gt;
&lt;P&gt;2.Creation of temporary tables to adjust quantities&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CREATE TABLE #adjusted_records (
   id INT,
   adjusted_quantity DECIMAL(10, 2),
   category INT,
   month INT
);

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;3.Insert the adjusted data into the temporary table&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;INSERT INTO #adjusted_records (id, adjusted_quantity, category, month)
SELECT
   id,
   quantity * (1 + @percentage_change),
   category,
   month
FROM
   records;&lt;/LI-CODE&gt;
&lt;P&gt;4.Use the temporary table to calculate the new values and summarize&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;WITH computed_values AS (
   SELECT
       ar.id,
       ar.adjusted_quantity,
       pe.price,
       (ar.adjusted_quantity * pe.price) AS new_value
   FROM
       #adjusted_records ar
   JOIN
       price_entry pe
   ON
       ar.month = pe.month AND ar.category = pe.category
)
SELECT
   SUM(new_value) AS total_sum
FROM
   computed_values;
-- Drop the temporary table
DROP TABLE #adjusted_records;
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If you have any other questions, I've found the following document to help you out, and I hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/sql/relational-databases/tables/temporal-tables?view=sql-server-ver16" target="_blank"&gt;Temporal tables - SQL Server | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hope it helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Tom Shen&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 04:20:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4072619#M161682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-01T04:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this fromula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4073501#M161729</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do this in Power Bi? I see this solution is in SQL server.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 12:12:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4073501#M161729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-01T12:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this fromula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4073577#M161735</link>
      <description>&lt;P&gt;Here are some pictures of what I am working with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically looking to take quantity, multiply it by percent change and then take the new values and multiply them by the price values based on the "month" and "cut"&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 12:52:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4073577#M161735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-01T12:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this fromula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4075099#M161791</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;For your question, we tried to do it using two calculation columns to meet the requirement, the first calculation column to find the change in quantity and percentage, and then the second calculation column to find the new value and multiply them by the price value based on "month" and "cut", hope this helps you! I hope this helps, if there are any other questions, please contact me at the first time, I will continue to help you answer.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Adjusted Quantity = 'combined_data'[Quantity]*(1+'combined_data'[Percent Change]/100)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;New value = 'combined_data'[Adjusted Quantity]*
CALCULATE(
    MAX('combined_data'[Price]),
FILTER('combined_data',
'combined_data'[Cut]=EARLIER('combined_data'[Cut])&amp;amp;&amp;amp;'combined_data'[Month]=EARLIER('combined_data'[Month])
)
)&lt;/LI-CODE&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;img /&gt;
&lt;P&gt;Hope it helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Tom Shen&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Aug 2024 05:38:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4075099#M161791</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-02T05:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this fromula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4076065#M161842</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is really good, but I have a few questions. You mention "we tried it using two calculation columns". Does that mean you created new measures or columns? Also, I would like the percent change to be something you can change with a slicer and the final value changes dynamcially as you change the slicer. Also, I do not want to put the percent changes in the SQL table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 13:22:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4076065#M161842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-02T13:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this fromula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4079220#M161957</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I think your understanding is correct, I have added new columns, if you don't need the new calculated columns, this is the state I changed to metrics, two states to choose from, hope this helps.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 1 = SUMX('combined_data','combined_data'[Quantity])*(1+SELECTEDVALUE('combined_data'[Percent Change])/100)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure = MAXX('combined_data','combined_data'[Measure 1])*
CALCULATE(
    MAX('combined_data'[Price]),
FILTER('combined_data',
'combined_data'[Cut]=SELECTEDVALUE('combined_data'[Cut])&amp;amp;&amp;amp;'combined_data'[Month]=SELECTEDVALUE('combined_data'[Month])
)
)&lt;/LI-CODE&gt;
&lt;P&gt;If you want to make changes based on Percent change, you can just put it in slicer, and this step doesn't need to be saved in SQL table, so you can use it without any problem.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Hope it helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Tom Shen&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 01:39:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4079220#M161957</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-05T01:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this fromula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4081212#M162008</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your response, but I do not think this will help me in the long&amp;nbsp;run. I basically do not want to have the percent changes in my main SQL&amp;nbsp;data table. I would prefer if it is its own table that I can put into a slicer and when I choose it, it multiplies by that number before then taking that new number and multiplying&amp;nbsp;it by the associated price for cut and month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess an example I would give is lets say there was a January&amp;nbsp;23rd transaction with a quantity of 40000 and the cut was Belly. I would want to be able to take that 40000 and on the slicer select a % increase or decrease. So lets say i choose -2%, I would want the new value to be 39,200. I then would want to take that 39,200 and multiply it by the price of January&amp;nbsp;Belly. So lets say the January&amp;nbsp;belly cost is 1.50, the ending transaction cost would be 58,800. I basically want to do that for every single transaction individually based on cut and month ideally in a singular measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 12:16:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4081212#M162008</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-05T12:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this fromula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4082801#M162070</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I think I can now understand what you mean, we can create a percentage parameter in Power bi for dynamic selection.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Then create two slicers, one for cut and one for Date to do what you want.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If you still have questions, here is my example data, I hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps!&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Tom Shen&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&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, 06 Aug 2024 02:28:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4082801#M162070</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-06T02:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this fromula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4086791#M162215</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is really good, but I am still running into a few issues...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.) I am running into an issue when I do not choose a cut or month and put it into a card. (Screenshot Below)&lt;/P&gt;&lt;P&gt;2. I have many days over the 6 year range that have more than one transaction, is there a way around this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, thank you so much you've truly helped me exponentially.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 13:15:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4086791#M162215</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-07T13:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this fromula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4086795#M162216</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 13:16:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4086795#M162216</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-07T13:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this fromula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4086892#M162224</link>
      <description>&lt;P&gt;Also, I noticed in both my file and yours, the measure 2 does not seem to be summing properly.&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 14:06:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4086892#M162224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-07T14:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this fromula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4088793#M162274</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;For your card vision object that has no value inside and the value of measure2 is not calculated correctly, we can try to solve this by splitting the measure into two parts for use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 2 = 
CALCULATE(MAX('combined_data 1'[Price]),
FILTER('combined_data 1','combined_data 1'[Cut]=VALUES('combined_data 1'[Cut])&amp;amp;&amp;amp;'combined_data 1'[Month]=VALUES('combined_data 1'[Month])
)
)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure 3 = SUMX('combined_data 1','Parameter'[Measure]*[Measure 2])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;For your second question, we can try using calculated columns and a new table to aggregate the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = SUMX(FILTER('Table','Table'[Date]=EARLIER('Table'[Date])),'Table'[Quantity])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&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;
&lt;LI-CODE lang="markup"&gt;Table 2 = SUMMARIZE('Table','Table'[Date],"TotalQuantity",SUM('Table'[Quantity]))&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;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;For your new request I have updated the pbix file, I hope it helps you, it's my pleasure to help you.&lt;/P&gt;
&lt;P&gt;Hope it helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Community Support Team_ Tom Shen&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 09:00:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4088793#M162274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-08T09:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this fromula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4089385#M162306</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much, your solution was fantastic. I do have one more question though. So now that I successfully have that measure, I am looking to combine it with another measure that is all the stuff that was not a quantity. I am looking to sum up everything, and while I have tried a simple addition equation of my two measures. my visual keeps exceeding the alloted space. HJere are a few images.&amp;nbsp;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 13:47:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4089385#M162306</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-08T13:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this fromula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4089536#M162315</link>
      <description>&lt;P&gt;Also I tried a new formula and keep getting the exceeded error.&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 15:01:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-this-fromula/m-p/4089536#M162315</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-08T15:01:31Z</dc:date>
    </item>
  </channel>
</rss>

