<?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 how to do calculation to get the DaysFromToday item in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/how-to-do-calculation-to-get-the-DaysFromToday-item/m-p/53778#M1684</link>
    <description>&lt;P&gt;When data gets from &lt;STRONG&gt;Google Analytics&lt;/STRONG&gt; its automatically create Datasets, Reports and Dashboards in Power BI web&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In datasets we have &lt;STRONG&gt;Fields -&amp;gt; Overview -&amp;gt; DaysFromToday&lt;/STRONG&gt; item.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From Power BI Desktop when I try to pull the data from Google Analytics it retrivies the raw data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So how to do calculation to get the&amp;nbsp;&lt;STRONG&gt;DaysFromToday&lt;/STRONG&gt;&lt;SPAN&gt; item and &lt;STRONG&gt;client wants to show the data for last 24hours&lt;/STRONG&gt;. Please tell the steps&amp;nbsp;for both.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Nagarjun K&lt;/P&gt;&lt;P&gt;9986740402&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2016 15:16:58 GMT</pubDate>
    <dc:creator>kunkumuriarjun</dc:creator>
    <dc:date>2016-07-28T15:16:58Z</dc:date>
    <item>
      <title>how to do calculation to get the DaysFromToday item</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/how-to-do-calculation-to-get-the-DaysFromToday-item/m-p/53778#M1684</link>
      <description>&lt;P&gt;When data gets from &lt;STRONG&gt;Google Analytics&lt;/STRONG&gt; its automatically create Datasets, Reports and Dashboards in Power BI web&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In datasets we have &lt;STRONG&gt;Fields -&amp;gt; Overview -&amp;gt; DaysFromToday&lt;/STRONG&gt; item.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From Power BI Desktop when I try to pull the data from Google Analytics it retrivies the raw data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So how to do calculation to get the&amp;nbsp;&lt;STRONG&gt;DaysFromToday&lt;/STRONG&gt;&lt;SPAN&gt; item and &lt;STRONG&gt;client wants to show the data for last 24hours&lt;/STRONG&gt;. Please tell the steps&amp;nbsp;for both.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Nagarjun K&lt;/P&gt;&lt;P&gt;9986740402&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 15:16:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/how-to-do-calculation-to-get-the-DaysFromToday-item/m-p/53778#M1684</guid>
      <dc:creator>kunkumuriarjun</dc:creator>
      <dc:date>2016-07-28T15:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to do calculation to get the DaysFromToday item</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/how-to-do-calculation-to-get-the-DaysFromToday-item/m-p/53992#M1690</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="10841" data-lia-user-login="kunkumuriarjun" class="lia-mention lia-mention-user"&gt;kunkumuriarjun﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have no idea on what your GA dataset is like, according to the names, I think you could create two calculated columns as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DaysFromToday = DATEDIFF('Table'[date],TODAY(),DAY)


isInLast24hours = IF(DATEDIFF('Table'[date],NOW(),HOUR)&amp;lt;24,"Y","N")&lt;/PRE&gt;
&lt;P&gt;&lt;img&gt;﻿&lt;/img&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The use the column isInLast24hours as a filter.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 09:39:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/how-to-do-calculation-to-get-the-DaysFromToday-item/m-p/53992#M1690</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2016-07-29T09:39:06Z</dc:date>
    </item>
  </channel>
</rss>

