<?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 Replicating a Spotfire case when query to a PowerBI New Column DAX Expression (switch case) in ArcGIS for Power BI Questions</title>
    <link>https://community.esri.com/t5/arcgis-for-power-bi-questions/replicating-a-spotfire-case-when-query-to-a/m-p/1182738#M1255</link>
    <description>&lt;P class=""&gt;I am migrating a Spotfire Report to a PowerBI Report. For one of the columns, I have a Spotfire case when query that I want to convert to a switch case DAX Expression. I started out and I think I am good with the initial part of the query but am not sure how to build the rest of the query. Here are the details:&lt;/P&gt;&lt;P class=""&gt;Spotfire case when query:&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;CASE&amp;nbsp; WHEN (&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;STRONG&gt;[RefPointGroupCap] is not null) OR (&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;STRONG&gt;[MortgageGroupCap] is not null) OR (&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;STRONG&gt;[MPBGroupCap] is not null) OR (&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;STRONG&gt;[NCBGroupCap] is not null) OR (&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;STRONG&gt;[SRCGroupCap] is not null) THEN&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;"Y"&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&amp;amp; (if([RefPointGroupCap] is null,""," / " &amp;amp; [RefPointGroupCap]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&amp;amp; (If([MortgageGroupCap] is null,""," / " &amp;amp; [MortgageGroupCap]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&amp;amp; (If([MPBGroupCap] is null,""," / " &amp;amp; [MPBGroupCap]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&amp;amp; (If([NCBGroupCap] is null,""," / " &amp;amp; [NCBGroupCap]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&amp;amp; (If([SRCGroupCap] is null,""," / " &amp;amp; [SRCGroupCap]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;WHEN (&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;STRONG&gt;[RefPointGroupCap] is null) and (&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;STRONG&gt;[MortgageGroupCap] is null) and (&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;STRONG&gt;[MPBGroupCap] is null) and (&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;STRONG&gt;[NCBGroupCap] is null) and (&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;STRONG&gt;[SRCGroupCap] is null) THEN "N"&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;END&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;The switch case query I built half way:&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Column=&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SWITCH (&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TRUE (),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOT(ISBLANK('F22_New_Cumulative_export (2)'[RefPointGroupCap])) ||&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOT(ISBLANK('F22_New_Cumulative_export (2)'[MortgageGroupCap])) ||&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOT(ISBLANK('F22_New_Cumulative_export (2)'[MPBGroupCap])) ||&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOT(ISBLANK('F22_New_Cumulative_export (2)'[NCBGroupCap])) ||&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOT(ISBLANK('F22_New_Cumulative_export (2)'[SRCGroupCap])) ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"Y" &amp;amp;&amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(IF(ISBLANK('F22_New_Cumulative_export (2)'[RefPointGroupCap]), BLANK(), " / " &amp;amp; 'F22_New_Cumulative_export (2)'[RefPointGroupCap]) &amp;amp;&amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(IF(ISBLANK('F22_New_Cumulative_export (2)'[MortgageGroupCap]), BLANK(), " / " &amp;amp; 'F22_New_Cumulative_export (2)'[MortgageGroupCap]) &amp;amp;&amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(IF(ISBLANK('F22_New_Cumulative_export (2)'[MPBGroupCap]), BLANK(), " / " &amp;amp; 'F22_New_Cumulative_export (2)'[MPBGroupCap]) &amp;amp;&amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(IF(ISBLANK('F22_New_Cumulative_export (2)'[NCBGroupCap]), BLANK(), " / " &amp;amp; 'F22_New_Cumulative_export (2)'[NCBGroupCap]) &amp;amp;&amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(IF(ISBLANK('F22_New_Cumulative_export (2)'[SRCGroupCap]), BLANK(), " / " &amp;amp; 'F22_New_Cumulative_export (2)'[SRCGroupCap]),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ISBLANK('F22_New_Cumulative_export (2)'[RefPointGroupCap]) ||&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ISBLANK('F22_New_Cumulative_export (2)'[MortgageGroupCap]) ||&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ISBLANK('F22_New_Cumulative_export (2)'[MPBGroupCap]) ||&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ISBLANK('F22_New_Cumulative_export (2)'[NCBGroupCap]) ||&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ISBLANK('F22_New_Cumulative_export (2)'[SRCGroupCap]),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"N"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;))))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;Let me know if you need any more information, thanks for the help!&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 15:45:38 GMT</pubDate>
    <dc:creator>DhrumilPareshPatel</dc:creator>
    <dc:date>2022-06-14T15:45:38Z</dc:date>
    <item>
      <title>Replicating a Spotfire case when query to a PowerBI New Column DAX Expression (switch case)</title>
      <link>https://community.esri.com/t5/arcgis-for-power-bi-questions/replicating-a-spotfire-case-when-query-to-a/m-p/1182738#M1255</link>
      <description>&lt;P class=""&gt;I am migrating a Spotfire Report to a PowerBI Report. For one of the columns, I have a Spotfire case when query that I want to convert to a switch case DAX Expression. I started out and I think I am good with the initial part of the query but am not sure how to build the rest of the query. Here are the details:&lt;/P&gt;&lt;P class=""&gt;Spotfire case when query:&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;CASE&amp;nbsp; WHEN (&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;STRONG&gt;[RefPointGroupCap] is not null) OR (&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;STRONG&gt;[MortgageGroupCap] is not null) OR (&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;STRONG&gt;[MPBGroupCap] is not null) OR (&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;STRONG&gt;[NCBGroupCap] is not null) OR (&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;STRONG&gt;[SRCGroupCap] is not null) THEN&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;"Y"&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&amp;amp; (if([RefPointGroupCap] is null,""," / " &amp;amp; [RefPointGroupCap]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&amp;amp; (If([MortgageGroupCap] is null,""," / " &amp;amp; [MortgageGroupCap]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&amp;amp; (If([MPBGroupCap] is null,""," / " &amp;amp; [MPBGroupCap]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&amp;amp; (If([NCBGroupCap] is null,""," / " &amp;amp; [NCBGroupCap]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&amp;amp; (If([SRCGroupCap] is null,""," / " &amp;amp; [SRCGroupCap]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;WHEN (&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;STRONG&gt;[RefPointGroupCap] is null) and (&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;STRONG&gt;[MortgageGroupCap] is null) and (&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;STRONG&gt;[MPBGroupCap] is null) and (&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;STRONG&gt;[NCBGroupCap] is null) and (&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;STRONG&gt;[SRCGroupCap] is null) THEN "N"&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;END&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;The switch case query I built half way:&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Column=&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SWITCH (&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TRUE (),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOT(ISBLANK('F22_New_Cumulative_export (2)'[RefPointGroupCap])) ||&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOT(ISBLANK('F22_New_Cumulative_export (2)'[MortgageGroupCap])) ||&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOT(ISBLANK('F22_New_Cumulative_export (2)'[MPBGroupCap])) ||&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOT(ISBLANK('F22_New_Cumulative_export (2)'[NCBGroupCap])) ||&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOT(ISBLANK('F22_New_Cumulative_export (2)'[SRCGroupCap])) ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"Y" &amp;amp;&amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(IF(ISBLANK('F22_New_Cumulative_export (2)'[RefPointGroupCap]), BLANK(), " / " &amp;amp; 'F22_New_Cumulative_export (2)'[RefPointGroupCap]) &amp;amp;&amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(IF(ISBLANK('F22_New_Cumulative_export (2)'[MortgageGroupCap]), BLANK(), " / " &amp;amp; 'F22_New_Cumulative_export (2)'[MortgageGroupCap]) &amp;amp;&amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(IF(ISBLANK('F22_New_Cumulative_export (2)'[MPBGroupCap]), BLANK(), " / " &amp;amp; 'F22_New_Cumulative_export (2)'[MPBGroupCap]) &amp;amp;&amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(IF(ISBLANK('F22_New_Cumulative_export (2)'[NCBGroupCap]), BLANK(), " / " &amp;amp; 'F22_New_Cumulative_export (2)'[NCBGroupCap]) &amp;amp;&amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(IF(ISBLANK('F22_New_Cumulative_export (2)'[SRCGroupCap]), BLANK(), " / " &amp;amp; 'F22_New_Cumulative_export (2)'[SRCGroupCap]),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ISBLANK('F22_New_Cumulative_export (2)'[RefPointGroupCap]) ||&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ISBLANK('F22_New_Cumulative_export (2)'[MortgageGroupCap]) ||&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ISBLANK('F22_New_Cumulative_export (2)'[MPBGroupCap]) ||&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ISBLANK('F22_New_Cumulative_export (2)'[NCBGroupCap]) ||&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ISBLANK('F22_New_Cumulative_export (2)'[SRCGroupCap]),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"N"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;))))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;Let me know if you need any more information, thanks for the help!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 15:45:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-power-bi-questions/replicating-a-spotfire-case-when-query-to-a/m-p/1182738#M1255</guid>
      <dc:creator>DhrumilPareshPatel</dc:creator>
      <dc:date>2022-06-14T15:45:38Z</dc:date>
    </item>
  </channel>
</rss>

