<?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: Measure Conditional in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Conditional/m-p/754194#M2913</link>
    <description>&lt;P&gt;Sorry, I was wrong in saying that I want to multiply. I have a table and I want to add a column in the table of the data(in terms of visualizations) to have prices of 2019.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a visualization with all the information in the table data and add the following columns:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Group | Buyer 2019 | Sale 2019 |&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2019 16:27:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-31T16:27:47Z</dc:date>
    <item>
      <title>Measure Conditional</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Conditional/m-p/753999#M2903</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to calculate in the same measure the following problem:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have prices for 2018 and 2019, and in the same measure, I need to calculate the quatity*prices for 2018 if the date is before 01-10-2019, after that, I need to calculate quantitty*prices 2019.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 13:19:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Conditional/m-p/753999#M2903</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-31T13:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Conditional</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Conditional/m-p/754088#M2904</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you provide a data sample?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Best Regards,&lt;BR /&gt;Mariusz&lt;BR /&gt;&lt;BR /&gt;Please feel free to connect with me.&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/mariusz-repczynski-065a7362/" rel="nofollow noopener noreferrer" target="_blank"&gt;&lt;IMG src="https://ip1.i.lithium.com/1232d707bb27fc4afa3b81cd0702c478b6f7aced/68747470733a2f2f7374617469632e6c6963646e2e636f6d2f736364732f636f6d6d6f6e2f752f696d616765732f6c6f676f732f6c696e6b6564696e2f6c6f676f5f6c696e6b6564696e5f39337832315f76322e706e67" border="0" alt="Mariusz Repczynski" /&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 14:44:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Conditional/m-p/754088#M2904</guid>
      <dc:creator>Mariusz</dc:creator>
      <dc:date>2019-07-31T14:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Conditional</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Conditional/m-p/754105#M2905</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81408" data-lia-user-login="Mariusz" class="lia-mention lia-mention-user"&gt;Mariusz&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did it just right now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just did a lot of ifs with calculates...&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF(sum('table'[date]&amp;lt;DATE[yyyy;mm;dd);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(IF(SUM('Tabela Categoria'[CAT_2])=1;CALCULATE(SUM('Table Sales'[Sales Price]);'Table Sales'[Year]=2018);IF(SUM('Tabela Categoria'[CAT_2])=2;CALCULATE(SUM('Table Sales'[Sales Price]);'Table Sales'[Year]=2018);IF(SUM('Tabela Categoria'[CAT_2])=3;CALCULATE(SUM('Table Sales'[Sales Price]);'VTable Sales'[Year]=2018)))));(IF(SUM('Tabela Categoria'[CAT_2])=1;CALCULATE(SUM('Table Sales'[Sales Price]);'Table Sales'[Year]=2019);IF(SUM('Tabela Categoria'[CAT_2])=2;CALCULATE(SUM('Table Sales'[Sales Price]);'Table Sales'[Year]=2019);IF(SUM('Tabela Categoria'[CAT_2])=3;CALCULATE(SUM('Table Sales'[Sales Price]);'Table Sales'[Year]=2019)))))&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;Do you believe you know a easier way?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you for your feedback.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 Jul 2019 14:51:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Conditional/m-p/754105#M2905</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-31T14:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Conditional</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Conditional/m-p/754121#M2906</link>
      <description>&lt;P&gt;Asking Questions on Power BI Forum - &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 15:10:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Conditional/m-p/754121#M2906</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-31T15:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Conditional</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Conditional/m-p/754127#M2908</link>
      <description>&lt;P&gt;There definitely is an easier way, but it depends on how your data is modeled. Could you share a sample of the raw data&amp;nbsp;with us so we can see how it is set up in your data table?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, if you could share a mockup of your desired visual as well, that would help too. It looks like you're trying to control and account for every possible category/year combination instead of letting your visual handle the context changes for you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 15:17:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Conditional/m-p/754127#M2908</guid>
      <dc:creator>Cmcmahan</dc:creator>
      <dc:date>2019-07-31T15:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Conditional</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Conditional/m-p/754154#M2909</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="130077" data-lia-user-login="Cmcmahan" class="lia-mention lia-mention-user"&gt;Cmcmahan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a &lt;STRONG&gt;table Price&lt;/STRONG&gt; with the following information(In this table I have different prices by group by the prices of 2019 only be applicable after 01.10.2019.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Origin|Destiny|Region|Group|Sales Price| Year | Date&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lisbon|Destiny|Region|A|10|2018 | Date&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lisbon|Destiny|Region|B|20| 2018 | Date&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lisbon|Destiny|Region|C|30| 2018 | Date&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lisbon|Destiny|Region|A|15| 2019 | 01.10.2019&lt;/P&gt;&lt;P&gt;Lisbon|Destiny|Region|B|25| 2019 |&amp;nbsp;01.10.2019&lt;/P&gt;&lt;P&gt;Lisbon|Destiny|Region|C|35| 2019 | 01.10.2019&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table of buyer:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Origin|Destiny|Region|Group|Buyer Price| Year | Observations&lt;/P&gt;&lt;P&gt;Lisbon|Destiny|Region|A|10|2018 |&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lisbon|Destiny|Region|B|20| 2018 |&lt;/P&gt;&lt;P&gt;Lisbon|Destiny|Region|C|30| 2018 |&lt;/P&gt;&lt;P&gt;Lisbon|Destiny|Region|A|15| 2019 |&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lisbon|Destiny|Region|B|25| 2019 |&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lisbon|Destiny|Region|C|35| 2019 |&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lisbon|Destiny|Region|A|15| 2019 | New Proposal&lt;/P&gt;&lt;P&gt;Lisbon|Destiny|Region|B|25| 2019 | New Proposal&lt;/P&gt;&lt;P&gt;Lisbon|Destiny|Region|C|35| 2019 | New Proposal&lt;/P&gt;&lt;P&gt;Lisbon|Destiny|Region|A|15| 2019 | Applicable&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lisbon|Destiny|Region|B|25| 2019 | Applicable&lt;/P&gt;&lt;P&gt;Lisbon|Destiny|Region|C|35| 2019 | Applicable&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table of Model Data:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Model | Group | CAT | Brand | Concatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;123&amp;nbsp; &amp;nbsp; &amp;nbsp;| 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| A&amp;nbsp; &amp;nbsp; &amp;nbsp;| Apple |&amp;nbsp; &amp;nbsp;123A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Category Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CAT&amp;nbsp; | CAT_2&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; | 1&lt;/P&gt;&lt;P&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; | 2&lt;/P&gt;&lt;P&gt;C&amp;nbsp; &amp;nbsp; &amp;nbsp; | 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table of Data&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date| Model|Sales Value&amp;nbsp; | Buyer value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Relationships&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table of Data &amp;lt;--&amp;gt; Model Data&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Model Data &amp;lt;--&amp;gt; Category Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Category Table &amp;lt;--&amp;gt;Buyer Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Category Table &amp;lt;--&amp;gt;Sales Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want my measure to calculate the price of 2018 for the table data until 01.10.2019,after that I want prices 2019.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data is too confusing. hope you can understand :)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 15:45:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Conditional/m-p/754154#M2909</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-31T15:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Conditional</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Conditional/m-p/754188#M2912</link>
      <description>&lt;P&gt;This is very helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your original post, you said that you needed to multiply the sales price with the quantity.&amp;nbsp; From the tables you shared, we can get a sales price for any given combination of Group/Date easily. How do you determine the quantity?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 16:23:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Conditional/m-p/754188#M2912</guid>
      <dc:creator>Cmcmahan</dc:creator>
      <dc:date>2019-07-31T16:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Conditional</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Conditional/m-p/754194#M2913</link>
      <description>&lt;P&gt;Sorry, I was wrong in saying that I want to multiply. I have a table and I want to add a column in the table of the data(in terms of visualizations) to have prices of 2019.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a visualization with all the information in the table data and add the following columns:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Group | Buyer 2019 | Sale 2019 |&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 16:27:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Conditional/m-p/754194#M2913</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-31T16:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Conditional</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Conditional/m-p/754321#M2923</link>
      <description>&lt;P&gt;So it seems like your data is set up in an almost completely useless way for PowerBI.&amp;nbsp;Your best use of time is likely to&amp;nbsp;&lt;A href="https://www.essentialsql.com/get-ready-to-learn-sql-database-normalization-explained-in-simple-english/" target="_self"&gt;normalize your data&lt;/A&gt; and set up unique indexes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm guessing the intention is that Date in the Price table is a "Price First Effective" date, which makes sense, but then Buyers would need a Date Purchased column to make use of it. You could filter your visual by where Year = 2019, which solves filtering out 2018 data. However,&amp;nbsp; I'm completely in the dark how you would want to calculate values for Buyer 2019 for given Group.&amp;nbsp; Wouldn't it always be the same as Sale 2019?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you share your .pbix file? What you're asking might make more sense if we can see what you're trying to accomplish.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 19:23:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Conditional/m-p/754321#M2923</guid>
      <dc:creator>Cmcmahan</dc:creator>
      <dc:date>2019-07-31T19:23:53Z</dc:date>
    </item>
  </channel>
</rss>

