<?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 any way to change Type depending on condition in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/any-way-to-change-Type-depending-on-condition/m-p/2663970#M79078</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is a simple test spreadsheet. One of columns is called "Type" which consists of Wastage, Quarantine and Rework.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&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;On some occasions, although type is selected as Wastage, it occurs hours to spend for rework.&lt;/P&gt;&lt;P&gt;Since I need to populate data under different TYPE's but at the same time I need to capture rework hours, I put both information in a single line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this raw data, I have separated Total amount into Wastage, Quaratnine and Rework as below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Sum of Quarantine = &lt;/SPAN&gt;&lt;SPAN&gt;calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Testing[sum]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;Testing[Type]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"Quarantine"&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Sum of Rework = &lt;/SPAN&gt;&lt;SPAN&gt;calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Testing[Rework Cost]&lt;/SPAN&gt;&lt;SPAN&gt;) )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Sum of Wastage = &lt;/SPAN&gt;&lt;SPAN&gt;calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Testing[sum]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;Testing[Type]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"Wastage"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;With above, I plotted graphs as below&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;When I clicked a pie graph, bar graphs are not responded.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is there anyway to re-establish Type with condition where Rework cost" is Not zero, its cost belongs to Rework type.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 27 Jul 2022 07:01:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-07-27T07:01:13Z</dc:date>
    <item>
      <title>any way to change Type depending on condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/any-way-to-change-Type-depending-on-condition/m-p/2663970#M79078</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is a simple test spreadsheet. One of columns is called "Type" which consists of Wastage, Quarantine and Rework.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&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;On some occasions, although type is selected as Wastage, it occurs hours to spend for rework.&lt;/P&gt;&lt;P&gt;Since I need to populate data under different TYPE's but at the same time I need to capture rework hours, I put both information in a single line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this raw data, I have separated Total amount into Wastage, Quaratnine and Rework as below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Sum of Quarantine = &lt;/SPAN&gt;&lt;SPAN&gt;calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Testing[sum]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;Testing[Type]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"Quarantine"&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Sum of Rework = &lt;/SPAN&gt;&lt;SPAN&gt;calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Testing[Rework Cost]&lt;/SPAN&gt;&lt;SPAN&gt;) )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Sum of Wastage = &lt;/SPAN&gt;&lt;SPAN&gt;calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Testing[sum]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;Testing[Type]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"Wastage"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;With above, I plotted graphs as below&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;When I clicked a pie graph, bar graphs are not responded.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is there anyway to re-establish Type with condition where Rework cost" is Not zero, its cost belongs to Rework type.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Jul 2022 07:01:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/any-way-to-change-Type-depending-on-condition/m-p/2663970#M79078</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-27T07:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: any way to change Type depending on condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/any-way-to-change-Type-depending-on-condition/m-p/2665399#M79202</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Because the pie is using only measures. Only dimension values(common - Non summarized), can filter the visuals (interact) &lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 15:04:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/any-way-to-change-Type-depending-on-condition/m-p/2665399#M79202</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-07-27T15:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: any way to change Type depending on condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/any-way-to-change-Type-depending-on-condition/m-p/2666083#M79252</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;is there any way to do so? Or should i do something in power query, making a new row under condition where rework house is not blank, create a new row with Type set to Rework?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 21:23:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/any-way-to-change-Type-depending-on-condition/m-p/2666083#M79252</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-27T21:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: any way to change Type depending on condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/any-way-to-change-Type-depending-on-condition/m-p/2672009#M79707</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried to apply ’Testing[Date].[Month]‘ to the ’Details‘ field of pie chart?&lt;/P&gt;
&lt;P&gt;You can also try the following steps to modify your original model&amp;nbsp;&lt;SPAN&gt;in power query.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;1.duplicate a table ’testing2‘ -&amp;gt;remove column'Type',column 'Sum'&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Unpivot the "Rework Cost" column,then rename the new column "Attribute" to "Type" and the new column "Value" to "Sum"&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3. Duplicate a new table 'testing3' -&amp;gt;remove column 'Rework Cost'&lt;/P&gt;
&lt;P&gt;4. Apend table ’testing3‘ with table 'testing2' to create a new table 'Append1'&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;5.In the new model, apply the field 'Type' to the 'legend, you don't need to create additional measures.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Eason\&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 07:28:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/any-way-to-change-Type-depending-on-condition/m-p/2672009#M79707</guid>
      <dc:creator>v-easonf-msft</dc:creator>
      <dc:date>2022-08-01T07:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: any way to change Type depending on condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/any-way-to-change-Type-depending-on-condition/m-p/2672923#M79772</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192401" data-lia-user-login="v-easonf-msft" class="lia-mention lia-mention-user"&gt;v-easonf-msft&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 12:34:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/any-way-to-change-Type-depending-on-condition/m-p/2672923#M79772</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-01T12:34:14Z</dc:date>
    </item>
  </channel>
</rss>

