<?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: Calculations within a single fact column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculations-within-a-single-fact-column/m-p/2027005#M45341</link>
    <description>&lt;P&gt;Yes, it is possible to give you a formula but 1) it'll be extremely ugly, 2) it'll be extremely sub-optimal (meaning: slow) and 3) it'll be unnecessarily complex (which, again, means slow). What's more, the "fact table" is totally unsuitable for modeling in Power BI. It even goes against Best Practices of dimensional modeling. Are the ones who created the table even aware of their cardinal sins? I can't but wonder why people want to always sqeeze a square peg into a round hole and then they'll try hard to figure out why the model/system is slow and unusable. Do they really need to always learn the hard way? Really?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll tell you exactly why the solution with such a bad fact table will be totally flawed and unmaintainable. This is because you'll have to pair rows from the table for different measures (e.g., Price and Volume) and this will have to be done by joining on ALL the other columns. If you ever add more columns (attributes) to the model, you'll need to update the measures (possibly all of them!) and they will become slower and slower, precisely because the engine will have to work extremely hard to match rows from the same table and then do iteration over the matches executing operations like multiplication, division, addition.... over them. This will quickly become a nightmare for the developer to maintain and the user to use. &lt;STRONG&gt;I TELL YOU THAT TODAY&lt;/STRONG&gt;. If you go down this route, you and the business will be sorry rather sooner than later. If I were you, I'd think twice before shooting myself in the foot.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Aug 2021 23:33:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-08-19T23:33:38Z</dc:date>
    <item>
      <title>Calculations within a single fact column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculations-within-a-single-fact-column/m-p/2025998#M45282</link>
      <description>&lt;P&gt;In my organisation, they have created a data set, with th following simple lay-out:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Time // Location // Measure // Value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this way, they have stored, price, volume, availability, etc. data in one single fact column. Around this fact table there all kind of additional tables with dimensions, but these are not relevant for my question. The facts are available for each hour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is that I want to calculate the net sales (price * volume) for each hour and than sum the result for each hour up. After that I want to be able to slice and dice using for instance location and year/month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Price and Volume, would have been in two colums, this would be very easy. But with this single colom, I am little bit stuk on how to do solve this. So first question, is this even possible and any hint on what formula to use will be welcome.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 11:47:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculations-within-a-single-fact-column/m-p/2025998#M45282</guid>
      <dc:creator>Guataha</dc:creator>
      <dc:date>2021-08-19T11:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations within a single fact column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculations-within-a-single-fact-column/m-p/2026337#M45314</link>
      <description>&lt;P&gt;Just use Power Query to pivot the table into the right format.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 14:26:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculations-within-a-single-fact-column/m-p/2026337#M45314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-19T14:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations within a single fact column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculations-within-a-single-fact-column/m-p/2026364#M45318</link>
      <description>&lt;P&gt;Unfortunately this is not an option&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 14:42:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculations-within-a-single-fact-column/m-p/2026364#M45318</guid>
      <dc:creator>Guataha</dc:creator>
      <dc:date>2021-08-19T14:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations within a single fact column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculations-within-a-single-fact-column/m-p/2027005#M45341</link>
      <description>&lt;P&gt;Yes, it is possible to give you a formula but 1) it'll be extremely ugly, 2) it'll be extremely sub-optimal (meaning: slow) and 3) it'll be unnecessarily complex (which, again, means slow). What's more, the "fact table" is totally unsuitable for modeling in Power BI. It even goes against Best Practices of dimensional modeling. Are the ones who created the table even aware of their cardinal sins? I can't but wonder why people want to always sqeeze a square peg into a round hole and then they'll try hard to figure out why the model/system is slow and unusable. Do they really need to always learn the hard way? Really?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll tell you exactly why the solution with such a bad fact table will be totally flawed and unmaintainable. This is because you'll have to pair rows from the table for different measures (e.g., Price and Volume) and this will have to be done by joining on ALL the other columns. If you ever add more columns (attributes) to the model, you'll need to update the measures (possibly all of them!) and they will become slower and slower, precisely because the engine will have to work extremely hard to match rows from the same table and then do iteration over the matches executing operations like multiplication, division, addition.... over them. This will quickly become a nightmare for the developer to maintain and the user to use. &lt;STRONG&gt;I TELL YOU THAT TODAY&lt;/STRONG&gt;. If you go down this route, you and the business will be sorry rather sooner than later. If I were you, I'd think twice before shooting myself in the foot.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 23:33:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculations-within-a-single-fact-column/m-p/2027005#M45341</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-19T23:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations within a single fact column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculations-within-a-single-fact-column/m-p/2031269#M45549</link>
      <description>&lt;P&gt;Thanks for the valuable feedback. The thing is that I did not designed the table, do not own the data and has anything to say about the database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I only want to create a report based on this data. I will use your input for having an internal discussion on the data set-up, instead of trying to make this measure. Again thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 06:35:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculations-within-a-single-fact-column/m-p/2031269#M45549</guid>
      <dc:creator>Guataha</dc:creator>
      <dc:date>2021-08-23T06:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations within a single fact column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculations-within-a-single-fact-column/m-p/2032313#M45579</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="212147" data-lia-user-login="Guataha" class="lia-mention lia-mention-user"&gt;Guataha&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yeah. It's better to discuss the problem and find a good solution instead of having to constantly explain why things are not as smooth as they should be. PBI is great but only on condition that you get your data into the right shape. If you don't, prepare to suffer.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 12:53:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculations-within-a-single-fact-column/m-p/2032313#M45579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-23T12:53:46Z</dc:date>
    </item>
  </channel>
</rss>

