<?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 Evaluate measure based on column in pivot table (not related to data set) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Evaluate-measure-based-on-column-in-pivot-table-not-related-to/m-p/1730641#M35813</link>
    <description>&lt;P&gt;&amp;nbsp;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would be very appreciative if anyone could help with this issue (probably very simple but not sure).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In summary I have 3 tables of data, with 3 seperate measure I need to calculate in each (its more but scenrio hopefully enough to explain), so essentially end up with 9 measures.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to display as below in pivot table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Actual&lt;/TD&gt;&lt;TD&gt;Prior&lt;/TD&gt;&lt;TD&gt;YTD&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Country 1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Revenue&lt;/TD&gt;&lt;TD&gt;Measure 1&lt;/TD&gt;&lt;TD&gt;Measure 2&lt;/TD&gt;&lt;TD&gt;Measure 3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Costs&lt;/TD&gt;&lt;TD&gt;Measure 4&lt;/TD&gt;&lt;TD&gt;Measure 5&lt;/TD&gt;&lt;TD&gt;Measure 6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Other&lt;/TD&gt;&lt;TD&gt;Measure 7&lt;/TD&gt;&lt;TD&gt;Measure 8&lt;/TD&gt;&lt;TD&gt;Measure 9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Country 2&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Revenue&lt;/TD&gt;&lt;TD&gt;Measure 1&lt;/TD&gt;&lt;TD&gt;Measure 2&lt;/TD&gt;&lt;TD&gt;Measure 3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Costs&lt;/TD&gt;&lt;TD&gt;Measure 4&lt;/TD&gt;&lt;TD&gt;Measure 5&lt;/TD&gt;&lt;TD&gt;Measure 6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Other&lt;/TD&gt;&lt;TD&gt;Measure 7&lt;/TD&gt;&lt;TD&gt;Measure 8&lt;/TD&gt;&lt;TD&gt;Measure 9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moving the values around in the field box makes all measures either rows or columns so can't get them to show like this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have tried to create a new table of just: Actaul, Prior, YTD as values, and then use if statements in a new measure e.g.:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revenue:=if(Value="Current",Measure1,if(Value="Prior",Measure2....) etc but the ifs don't work and not sure how else to structure it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if the pivot table needs altering, or could somehow use a new date table with those values in, or if I need to change the meaures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be very much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
    <pubDate>Thu, 18 Mar 2021 13:33:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-03-18T13:33:02Z</dc:date>
    <item>
      <title>Evaluate measure based on column in pivot table (not related to data set)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Evaluate-measure-based-on-column-in-pivot-table-not-related-to/m-p/1730641#M35813</link>
      <description>&lt;P&gt;&amp;nbsp;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would be very appreciative if anyone could help with this issue (probably very simple but not sure).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In summary I have 3 tables of data, with 3 seperate measure I need to calculate in each (its more but scenrio hopefully enough to explain), so essentially end up with 9 measures.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to display as below in pivot table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Actual&lt;/TD&gt;&lt;TD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D&gt;Measure 5&lt;/TD&gt;&lt;TD&gt;Measure 6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Other&lt;/TD&gt;&lt;TD&gt;Measure 7&lt;/TD&gt;&lt;TD&gt;Measure 8&lt;/TD&gt;&lt;TD&gt;Measure 9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moving the values around in the field box makes all measures either rows or columns so can't get them to show like this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have tried to create a new table of just: Actaul, Prior, YTD as values, and then use if statements in a new measure e.g.:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revenue:=if(Value="Current",Measure1,if(Value="Prior",Measure2....) etc but the ifs don't work and not sure how else to structure it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if the pivot table needs altering, or could somehow use a new date table with those values in, or if I need to change the meaures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be very much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 13:33:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Evaluate-measure-based-on-column-in-pivot-table-not-related-to/m-p/1730641#M35813</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-18T13:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate measure based on column in pivot table (not related to data set)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Evaluate-measure-based-on-column-in-pivot-table-not-related-to/m-p/1730808#M35829</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , You need to split the measure, You have to create a table like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example table to be used for this display&amp;nbsp;&lt;/P&gt;
&lt;P&gt;union(&lt;BR /&gt;summarize('Table','Table'[country],"Revenue","sales","This period",[Revenue YTD],"Last period",[Revenue LYTD],"POP",[Revenue YOY])&lt;BR /&gt;summarize('Table','Table'[country],"Costs","unit","This period",[Costs YTD],"Last period",[Costs LYTD],"POP",[Costs YOY])&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 14:45:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Evaluate-measure-based-on-column-in-pivot-table-not-related-to/m-p/1730808#M35829</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-03-18T14:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate measure based on column in pivot table (not related to data set)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Evaluate-measure-based-on-column-in-pivot-table-not-related-to/m-p/1741960#M36197</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your repsonse! I have tried to write this up but not clear exactly how to. Should I be writing this out as a new DAX formula? I am using PowerPivot not PowerBI.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 09:22:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Evaluate-measure-based-on-column-in-pivot-table-not-related-to/m-p/1741960#M36197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-24T09:22:40Z</dc:date>
    </item>
  </channel>
</rss>

