<?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: ATAN2 in Quick Measures Gallery</title>
    <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/ATAN2/m-p/1044934#M454</link>
    <description>&lt;P&gt;Thanks Greg!&lt;/P&gt;</description>
    <pubDate>Thu, 23 Apr 2020 16:18:22 GMT</pubDate>
    <dc:creator>klago</dc:creator>
    <dc:date>2020-04-23T16:18:22Z</dc:date>
    <item>
      <title>ATAN2</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/ATAN2/m-p/963263#M422</link>
      <description>&lt;P&gt;DAX doesn't have an ATAN2 function so I created one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ATAN2 = 
    VAR __x = MAX('Table'[X])
    VAR __y = MAX('Table'[Y])
    VAR __atan2 = 
        SWITCH(
            TRUE(),
            __x &amp;gt; 0, ATAN(__y/__x),
            __x &amp;lt; 0 &amp;amp;&amp;amp; __y &amp;gt;= 0, ATAN(__y/__x) + PI(),
            __x &amp;lt; 0 &amp;amp;&amp;amp; __y &amp;lt; 0, ATAN(__y/__x) - PI(),
            __x = 0 &amp;amp;&amp;amp; __y &amp;gt; 0, PI()/2,
            __x = 0 &amp;amp;&amp;amp; __y &amp;lt; 0, PI()/2 * (0-1),
            BLANK()
        )
RETURN
    __atan2&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN class="reportid hidden"&gt;eyJrIjoiNWYyNmRlYzctY2Q1NC00NDQ0LTlkYWQtOTVhNjljMTMzN2RjIiwidCI6IjRhMDQyNzQzLTM3M2EtNDNkMi04MjdiLTAwM2Y0YzdiYTFlNSIsImMiOjN9&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Mar 2020 19:38:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/ATAN2/m-p/963263#M422</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-03-07T19:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: ATAN2</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/ATAN2/m-p/1044934#M454</link>
      <description>&lt;P&gt;Thanks Greg!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 16:18:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/ATAN2/m-p/1044934#M454</guid>
      <dc:creator>klago</dc:creator>
      <dc:date>2020-04-23T16:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: ATAN2</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/ATAN2/m-p/4252504#M1147</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&amp;nbsp;Hi Greg, I am trying to find wind direction on PowerBI. To do that I need arctan(V/U) and then convert it into degrees. I cannot have a negative degree so I need it to go around the entire unit circle (0-360). Do you have any sugguestions? Note: if the value of V is negative, the component is south. If V is positive, the component is north. If U is negative, the component is west. If U is positive, the component is east.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 11:13:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/ATAN2/m-p/4252504#M1147</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-22T11:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: ATAN2</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/ATAN2/m-p/4252658#M1148</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;OK, so ATAN2 should work for you if you plug V in for y and U in for x I believe.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 13:31:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/ATAN2/m-p/4252658#M1148</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-10-22T13:31:18Z</dc:date>
    </item>
  </channel>
</rss>

