<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ramu Vudugula on Medium]]></title>
        <description><![CDATA[Stories by Ramu Vudugula on Medium]]></description>
        <link>https://medium.com/@ramvudugula9?source=rss-1d0831fc2c90------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*c5LNhlMhxdsJscO1.</url>
            <title>Stories by Ramu Vudugula on Medium</title>
            <link>https://medium.com/@ramvudugula9?source=rss-1d0831fc2c90------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 23:44:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ramvudugula9/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Access the Power BI Rest APIs using Postman]]></title>
            <link>https://ramvudugula9.medium.com/access-the-power-bi-rest-apis-using-postman-ebc54a69ab3a?source=rss-1d0831fc2c90------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebc54a69ab3a</guid>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[postman]]></category>
            <category><![CDATA[power-bi-tutorials]]></category>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[power-bi]]></category>
            <dc:creator><![CDATA[Ramu Vudugula]]></dc:creator>
            <pubDate>Fri, 15 Jan 2021 10:11:51 GMT</pubDate>
            <atom:updated>2021-01-15T10:11:51.406Z</atom:updated>
            <content:encoded><![CDATA[<p>Power BI REST API provides service for embedding the reports in another application, accessing the data, create/modify the user permissions.</p><p>To use Power BI embedded analytics, you need to register an Azure Active Directory (Azure AD) application in Azure. The Azure AD app establishes permissions for Power BI REST resources, and allows access to the Power BI REST APIs.</p><p>Create an application in Azure — This application establishes permissions for Power BI Rest APIs by providing Application ID and secret keys</p><p>To create an application in Azure follow the below blog</p><p><a href="https://ramvudugula9.medium.com/register-an-azure-application-to-access-the-power-bi-rest-apis-82cc905e099d">Register an Azure Application to access the Power BI Rest APIs</a></p><p>Follow the below steps to access the Power BI Rest APIs using Postman</p><p>1. Open Postman application</p><p>2. First we need to generate authentication token to access Rest APIs</p><p>3. Use the below URL with the POST request</p><p><a href="https://login.microsoftonline.com/common/oauth2/token">https://login.microsoftonline.com/common/oauth2/token</a></p><p>4. Go to headers, enter ‘application/x-www-form-urlencoded’ as Content-Type</p><p>5. Click on body, select raw as type</p><p>6. Enter the below values in the body</p><p><em>grant_type=password</em></p><p><em>&amp;username=&lt;Power BI Application logged-in username&gt;</em></p><p><em>&amp;password=&lt;Power BI Application logged-in password&gt;</em></p><p><em>&amp;client_id=&lt;application ID&gt;</em></p><p><em>&amp;client_secret=&lt;application secret&gt;</em></p><p><em>&amp;resource=https://analysis.windows.net/powerbi/api</em></p><p>7. Enter the Power BI service user credentials, application ID and secret keys which copied in the above steps</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*2liDU_x1VEhrroB_G3a52g.png" /></figure><p>8. Click on Send</p><p>9. Successful request will generate the response and we can see the access token in the response</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*koyQ3hC3H24aFH3GOxXFBw.png" /></figure><p>10. Copy the access token</p><p>11. Click on New Request</p><p>12. We will use the an API which will give the list of reports information. Use the below API</p><p>GET <a href="https://api.powerbi.com/v1.0/myorg/reports">https://api.powerbi.com/v1.0/myorg/reports</a></p><p>13. Go to Authorization, Select Bearer token as type and enter above copied access token</p><p>14. Click on send, successful request will give the response</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*5j21hKy0i9hAEKVVdcLnbA.png" /></figure><p>We are able to access the Power BI Rest APIs using Postman</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebc54a69ab3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Register an Azure Application to access the Power BI Rest APIs]]></title>
            <link>https://ramvudugula9.medium.com/register-an-azure-application-to-access-the-power-bi-rest-apis-82cc905e099d?source=rss-1d0831fc2c90------2</link>
            <guid isPermaLink="false">https://medium.com/p/82cc905e099d</guid>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[power-bi-desktop]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Ramu Vudugula]]></dc:creator>
            <pubDate>Fri, 15 Jan 2021 10:06:57 GMT</pubDate>
            <atom:updated>2021-01-15T10:06:57.169Z</atom:updated>
            <content:encoded><![CDATA[<p>Power BI REST API provides service for embedding the reports in another application, accessing the data, create/modify the user permissions.</p><p>To use Power BI embedded analytics, you need to register an Azure Active Directory (Azure AD) application in Azure. The Azure AD app establishes permissions for Power BI REST resources, and allows access to the Power BI REST APIs.</p><p>Create an application in Azure — This application establishes permissions for Power BI Rest APIs by providing Application ID and secret keys</p><p>Follow the below steps to create an application in Azure</p><p>1. Open the Power BI App registration using the below link</p><p><a href="https://app.powerbi.com/embedsetup">https://app.powerbi.com/embedsetup</a></p><p>2. Select Embed for your organization as we are trying the test the Power BI APIs for our internal purpose</p><p>3. Sign in to Power BI service account with user credentials. Click on Next</p><p>4. Register your application by providing Application Name and Application URL</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*_-PvR-uv6VZ8Ld5iZK5GYA.png" /></figure><p>5. API access — select the list of APIs which we need to access or select all</p><p>6. Now click on Register, Now an application got created with Application ID and Application secret</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*NeFDYsPZ6MvVqQprpLSpww.png" /></figure><p>7. Copy the application ID and application secret and store</p><p>8. Skip the next two steps as those are optional</p><p>9. Now go to Azure portal by logged in with admin credentials</p><p><a href="https://portal.azure.com/">https://portal.azure.com/</a></p><p>10. Search App registrations in azure portal and click on that</p><p>11. Click on the application which we create above</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*naSU7oesYKchHbDdMcp38w.png" /></figure><p>12. Click on API permissions which is present under Manage on the left menu</p><p>13. Here we can see the configured permissions for the Application. We can create new permission also</p><p>14. Click on ‘Grant admin consent for group’ and click Ok, this setting will give permissions to access the application. If we don’t grant admin consent then we will get an error while accessing APIs (The user or administrator has not consented to use the application)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*2rpLaOQWd9YUe4yO7Pa0aw.png" /></figure><p>Now we have got the Application ready to access Power BI Rest APIs</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82cc905e099d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PostgreSQL data refresh using Data Gateway in Power BI report]]></title>
            <link>https://ramvudugula9.medium.com/postgresql-data-refresh-using-data-gateway-in-power-bi-report-ac8095bcef37?source=rss-1d0831fc2c90------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac8095bcef37</guid>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[data-gateway]]></category>
            <category><![CDATA[data-refresh]]></category>
            <category><![CDATA[power-bi-desktop]]></category>
            <dc:creator><![CDATA[Ramu Vudugula]]></dc:creator>
            <pubDate>Tue, 29 Sep 2020 10:32:50 GMT</pubDate>
            <atom:updated>2020-09-29T10:32:50.638Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Requirement: </strong>I have created a Power BI report with PostgreSQL as data source and published the report in Power BI service. I tried to create schedule refresh for the data set but gateway options are not showing</p><p><strong>Prerequisites: </strong>Power BI Service, Power BI Desktop, Power BI Data Gateway and PostgreSQL foodmart database</p><p><strong>Gateway:</strong></p><p>1. Download and install Data Gateway</p><p>2. Open Gateway and enter the Power BI service credentials</p><p>3. Now the gateway is ready to use in Power BI service</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*BQlw4BhMheaBEp7UC-L2ag.png" /></figure><p>Reference Link: <a href="https://powerbi.microsoft.com/en-us/gateway/">https://powerbi.microsoft.com/en-us/gateway/</a></p><p><strong>Using PostgreSQL Datasource:</strong></p><p>1. Open Power BI Desktop</p><p>2. Click on Get Data and choose PostgreSQL database</p><p>3. Enter the database credentials and select the table</p><p>4. Create a report and publish in Power BI service</p><p>5. Login to Power BI service and go to datasets</p><p>6. Click on ellipses of the above published report dataset and select Settings</p><p>7. Here we can see the Gateway connection and datasource credentials</p><p>8. Expand gateway connection to choose the gateway installed in local machine. We can see that ‘Use a data gateway’ option disabled</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*bko1x3J7siYTFgHcR193nw.png" /></figure><p>9. In the above screenshot we can see Edit credentials under Data source credentials</p><p>10. Click on that, enter data source credentials and Click OK. Getting error as below screen shot</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/409/1*3M3U3zx35T1YgVXqhB0utQ.png" /></figure><p>11. Now we understood that we are unable to connect PostgreSQL database in Power BI service and we are not getting an option to refresh data. To refresh the data of PostgreSQL database follow the below steps</p><p><strong>Connecting to PostgreSQL database using ODBC Connector:</strong></p><p>1. Using the below link download the latest version of ODBC connection for PostgreSQL database and Install</p><p><a href="https://www.postgresql.org/ftp/odbc/versions/msi/">https://www.postgresql.org/ftp/odbc/versions/msi/</a></p><p>2. After installation completed, open the Power BI Desktop and choose Get Data</p><p>3. Instead of selecting postgresql database, this time we will choose ODBC. Select ODBC and click on Connect</p><p>4. A window will open and select “None” as Datasource Name (DSN)</p><p>5. In the same window, we have connection string. Here we have to provide proper connection details to connect postgresql database. We won’t be able to click “OK” until we have provided the correct connection string.</p><p>6. To get the proper connection string use this link.</p><p><a href="https://www.connectionstrings.com/postgresql-odbc-driver-psqlodbc/">https://www.connectionstrings.com/postgresql-odbc-driver-psqlodbc/</a></p><p>7. We have given the below connection string and able to click on “OK”</p><p>Connection String:</p><p>Driver={PostgreSQL ANSI(x64)}; Server=localhost; Port=6433; Database=foodmart</p><p>8. Enter the credentials and select the tables</p><p>9. Create a report and publish in Power BI service</p><p>10. Login to Power BI service and open settings of a report dataset</p><p>11. Expand gateway connection and now we can see that gateway is enabled and it is connected local gateway</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*muKMGNFFvUjTDwmF7tRa4g.png" /></figure><p>12. Expand the data source credentials and enter the database credentials</p><p>13. Now go to datasets and click on refresh icon of the dataset</p><p>14. Dataset will get refreshed using the gateway</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac8095bcef37" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Display Selected Year and Previous Year data using Date Dimension in Power BI]]></title>
            <link>https://ramvudugula9.medium.com/display-selected-year-and-previous-year-data-using-date-dimension-in-power-bi-f0f0caa2aa85?source=rss-1d0831fc2c90------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0f0caa2aa85</guid>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[data-modeling]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[dax]]></category>
            <dc:creator><![CDATA[Ramu Vudugula]]></dc:creator>
            <pubDate>Tue, 21 Jul 2020 08:51:45 GMT</pubDate>
            <atom:updated>2020-07-21T08:51:45.068Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Requirement:</strong> In the Power BI report I have a Date dimension and Employee fact tables. In report I have added single select Year slicer and a column chart which should show Region wise employee terminations count. Current report will look like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*wSFKqlB_3KMWqfpoQ6ofEw.png" /></figure><p>As Year is single select, No of terms by Region chart showing data for only selected year. But I want the previous year data along with the selected month in chart</p><p>Ex: In the above image, year 2014 is selected so chart should show data for 2013 and 2014 years</p><p><strong>Solution:</strong></p><p>1. In the Power BI report we have Date dimension and Employee fact tables.</p><p>2. Date dimension and Employee fact table are related with a date column</p><p>3. Create a new calculated table using Date dimension to get the unique Year values</p><p>Table Expr: YearKey = DISTINCT(‘Date’[Year])</p><p>4. Use the column created in above step in Year slicer I.e Earlier we used year column from Date dimension as slicer but now we should use the new year column from ‘YearKey’ table</p><p>5. Create a new measure in Date dimension. This measure will help us to get the status of current selected and previous year</p><p>Measure Expr: Measure PrevYear Check = IF(MAX(‘Date’[Year])&gt;(MAX(YearKey[Year])-2) &amp;&amp; MAX(‘Date’[Year])&lt;=MAX(YearKey[Year]),1,0)</p><p>We are using Year column from YearKey in slicer so MAX(YearKey[Year]) will give the selected value and we will evaluate this for each year in Date dimension.</p><p>Consider we selected 2014 year in slicer and expression evaluates for each row and we can see the result of the measure</p><p>MAX(‘Date’[Year]) is 2010 &gt; (2014–2) -&gt; FALSE &amp;&amp; 2010 &lt;= 2014 -&gt; TRUE :- 0</p><p>MAX(‘Date’[Year]) is 2011 &gt; (2014–2) -&gt; FALSE &amp;&amp; 2011 &lt;= 2014 -&gt; TRUE :- 0</p><p>MAX(‘Date’[Year]) is 2012 &gt; (2014–2) -&gt; FALSE &amp;&amp; 2012 &lt;= 2014 -&gt; TRUE :- 0</p><p>MAX(‘Date’[Year]) is 2013 &gt; (2014–2) -&gt; TRUE &amp;&amp; 2013 &lt;= 2014 -&gt; TRUE :- 1</p><p>MAX(‘Date’[Year]) is 2014 &gt; (2014–2) -&gt; TRUE &amp;&amp; 2014 &lt;= 2014 -&gt; TRUE :- 1</p><p>MAX(‘Date’[Year]) is 2015 &gt; (2014–2) -&gt; TRUE &amp;&amp; 2015 &lt;= 2014 -&gt; FALSE :- 0</p><p>MAX(‘Date’[Year]) is 2016 &gt; (2014–2) -&gt; TRUE &amp;&amp; 2016 &lt;= 2014 -&gt; FALSE :- 0</p><p>6. Use the above created measure as a filter on the visual. Expand the filters, select the visual and drag the measure into filters. Apply filter as 1 for the measure</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/1*Lwyp0SVp7CZLdr2l8fvTHw.png" /></figure><p>7. Use the Year column from the ‘Date’ dimension into the legend of the chart</p><p>8. Now we can see that chart will show data for the selected year and previous year</p><p>Selected Year: 2014</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*UB80WxrYAAGcOAkR-aA0SA.png" /></figure><p>Selected Year: 2013</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*NThbsNJd7OpZDF4HxxeirQ.png" /></figure><p>Thanks</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0f0caa2aa85" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating User Input Variables in a Power BI Report]]></title>
            <link>https://ramvudugula9.medium.com/creating-user-input-variables-in-a-power-bi-report-9275b8b9f78d?source=rss-1d0831fc2c90------2</link>
            <guid isPermaLink="false">https://medium.com/p/9275b8b9f78d</guid>
            <category><![CDATA[customization]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[data-modeling]]></category>
            <category><![CDATA[input-field]]></category>
            <category><![CDATA[power-bi-desktop]]></category>
            <dc:creator><![CDATA[Ramu Vudugula]]></dc:creator>
            <pubDate>Mon, 20 Jul 2020 11:53:34 GMT</pubDate>
            <atom:updated>2020-07-20T11:53:34.262Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Requirements: </strong>In a report, user should have the flexibility to enter the input number and that number should filter the data. In Power BI reports, we can create slicer with input number and we have options to choose either single select or multi select but we do not have the option to enter the number.</p><p>This blog will provide the steps to create user input variable and how it can be used as a filter in the report.</p><p><strong>Prerequisites: </strong>Power BI Desktop</p><p>Sample Employee Details file attached below</p><p>1. Open Power BI desktop</p><p>2. Click on Get Data, select Excel and Load the employee details file into power bi desktop</p><p>3. Create a simple tabular report with all employee details</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/1*dxffez33yJDniit-6JxjKg.png" /></figure><p>4. Using slicer visual, we can create either single select or multi select year filter. See the below image</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/258/1*Og3112ZqhCTf18Tj4UfCMw.png" /></figure><p>5. But the requirement is to create a single user input parameter which can be used to enter input value like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/177/1*pwjtMab5wdD_RQLqrWS1dw.png" /></figure><p>To create like this follow below steps</p><p>6. In top header ribbon, choose Modeling and click on “What If” parameter</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*wY73T-IdsewKtNiHJ1nz8w.png" /></figure><p>7. New window will open, here we have enter few details like parameter name, data type, minimum and maximum number, increment value and default value. Select add slicer to the page and Click on OK</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*Hs2L5jmueZWltjdjjNZp7Q.png" /></figure><p>8. Above step will create new table in the report and will add slicer to the report page. Here we can enter the values with in that range and we can also use the slicer to change the value. We have the option to remove slicer also</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*hjNHUeX8Imf8y-EyIFKnQw.png" /></figure><p>9. Now we have the slicer and report but when the slicer value change report will not get affect as there is no relationship between these two</p><p>10. Click on “Manage Relationships” in Home ribbon. Add the relationship between these two tables</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*Drv2Kc780AoDpOuouev2fw.png" /></figure><p>11. Click on OK. Now report will show data for default value selected. Change the slider on filter or enter value to check the data for that year</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*hiaQHUoTKdouqDU6Ba-0vQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*P2DjLfpQ-oz_ZL9fM9wIsA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*AU_ZIHZ-Kgh-n6fqQU29bw.png" /></figure><p>12. We can see in the above images that employee details were shown for the selected year and if there is no data for the selected year it will show blank.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9275b8b9f78d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying Java maven project in Microsoft Azure using Azure CLI]]></title>
            <link>https://ramvudugula9.medium.com/deploying-java-maven-project-in-microsoft-azure-using-azure-cli-592450c54f7?source=rss-1d0831fc2c90------2</link>
            <guid isPermaLink="false">https://medium.com/p/592450c54f7</guid>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[web-apps]]></category>
            <category><![CDATA[command-prompt]]></category>
            <category><![CDATA[maven]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Ramu Vudugula]]></dc:creator>
            <pubDate>Tue, 30 Jun 2020 08:00:45 GMT</pubDate>
            <atom:updated>2020-06-30T08:00:45.880Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Prerequisites:</strong> Windows Command Prompt, Azure CLI, Azure Portal and Java maven project</p><p><strong>Reference Links:</strong></p><p>Download Azure CLI using below link</p><p><a href="https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows?view=azure-cli-latest">https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows?view=azure-cli-latest</a></p><p>Blog:</p><p><a href="https://docs.microsoft.com/en-us/azure/java/spring-framework/deploy-spring-boot-java-app-with-maven-plugin">https://docs.microsoft.com/en-us/azure/java/spring-framework/deploy-spring-boot-java-app-with-maven-plugin</a></p><p>Steps to be followed:</p><ol><li>After installing Azure CLI, open windows command prompt and enter <strong>az</strong> to check the installation of Azure CLI</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*PRVQ1MXGCqj29g8W6jxbAg.png" /></figure><p>2. If it is installed, then to find your installed version run <strong>az — version</strong> command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*DBt28X3KLOCimxtO5J13Ng.png" /></figure><p>3. Sign into your Azure account by using the Azure CLI: <strong>az login. </strong>Azure portal will open in the browser and enter the credentials to access Azure portal</p><p>4. Now go to Java maven project folder using <strong>cd foldername </strong>in command prompt</p><p>5. To update the configuration settings like app name, app subscription, app resource group, app service plan name, app service plan resource group, location and run time settings like os and java version, then run the below command and enter the options</p><p><strong>mvn azure-webapp:config</strong></p><p>This command will update the properties in pom.xml file</p><p>&lt;plugin&gt;</p><p>&lt;groupId&gt;com.microsoft.azure&lt;/groupId&gt;</p><p>&lt;artifactId&gt;azure-webapp-maven-plugin&lt;/artifactId&gt;</p><p>&lt;version&gt;1.8.0&lt;/version&gt;</p><p>&lt;configuration&gt;</p><p>&lt;! — Specify v2 schema →</p><p>&lt;schemaVersion&gt;v2&lt;/schemaVersion&gt;</p><p>&lt;! — App information →</p><p>&lt;subscriptionId&gt;18b78924–605f-4cb9-a064–5545687&lt;/subscriptionId&gt;</p><p>&lt;resourceGroup&gt;Test-Resource&lt;/resourceGroup&gt;</p><p>&lt;! — Deploy Web App to an existing Service Plan which pricing tier is not S3 →</p><p>&lt;appServicePlanResourceGroup&gt;Test-Resource&lt;/appServicePlanResourceGroup&gt;</p><p>&lt;appServicePlanName&gt;Test-AppServicePlan&lt;/appServicePlanName&gt;</p><p>&lt;appName&gt;webapp-java-test&lt;/appName&gt;</p><p>&lt;region&gt;Central US&lt;/region&gt;</p><p>&lt;! — Java Runtime Stack for App Service on Windows →</p><p>&lt;runtime&gt;</p><p>&lt;os&gt;windows&lt;/os&gt;</p><p>&lt;javaVersion&gt;1.8&lt;/javaVersion&gt;</p><p>&lt;webContainer&gt;java 8&lt;/webContainer&gt;</p><p>&lt;/runtime&gt;</p><p>&lt;! — Begin of App Settings →</p><p>&lt;appSettings&gt;</p><p>&lt;property&gt;</p><p>&lt;name&gt;JAVA_OPTS&lt;/name&gt;</p><p>&lt;value&gt;-Dserver.port=80;DisplayMessage=Application&lt;/value&gt;</p><p>&lt;/property&gt;</p><p>&lt;/appSettings&gt;</p><p>&lt;! — End of App Settings →</p><p>&lt;deployment&gt;</p><p>&lt;resources&gt;</p><p>&lt;resource&gt;</p><p>&lt;directory&gt;${project.basedir}/target&lt;/directory&gt;</p><p>&lt;includes&gt;</p><p>&lt;include&gt;*.jar&lt;/include&gt;</p><p>&lt;/includes&gt;</p><p>&lt;/resource&gt;</p><p>&lt;/resources&gt;</p><p>&lt;/deployment&gt;</p><p>&lt;pricingTier&gt;B1&lt;/pricingTier&gt;</p><p>&lt;/configuration&gt;</p><p>&lt;/plugin&gt;</p><p>6. Clean the project and build the new jar with the below command</p><p><strong>mvn clean package</strong></p><p>7. To deploy the application in Azure use the below command</p><p><strong>mvn azure-webapp:deploy</strong></p><p>8. After successful completion of deploying app service will be visible in the azure app</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=592450c54f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Power BI — Disable Power Query background refresh for Local Data Source]]></title>
            <link>https://ramvudugula9.medium.com/power-bi-disable-power-query-background-refresh-for-local-data-source-df77a96748c0?source=rss-1d0831fc2c90------2</link>
            <guid isPermaLink="false">https://medium.com/p/df77a96748c0</guid>
            <category><![CDATA[power-query]]></category>
            <category><![CDATA[datasource]]></category>
            <category><![CDATA[data-modeling]]></category>
            <category><![CDATA[refresh]]></category>
            <category><![CDATA[power-bi]]></category>
            <dc:creator><![CDATA[Ramu Vudugula]]></dc:creator>
            <pubDate>Mon, 11 May 2020 07:06:49 GMT</pubDate>
            <atom:updated>2020-05-11T07:32:37.864Z</atom:updated>
            <content:encoded><![CDATA[<h3>Power BI — Disable data refresh for Local Data Source</h3><p><strong>Requirement: </strong>In a Power BI report I have loaded the data using a local CSV file and SQL Server. Data in SQL server will be updated frequently. I have pubished the report in Power BI server and added data gateway connections to refresh the data in report. But everytime refresh runs, data will refresh in datasets of both SQL Server and CSV but there are no updates in CSV file so why it should refresh. I did some research and found a option to disable the refresh for a dataset in Power Query editor. Disabling data refresh will only work in Power BI Desktop, it will not work in Power BI server. So lets have a look at different approaches to do this.</p><p><strong>Solution: </strong>Data should be entered manually in Power BI Desktop. I have found two approaches to do this</p><p><strong>First Approach:</strong></p><p>1. Open Power BI Desktop</p><p>2. Instead of choosing Get Data, Click on Enter Data</p><p>3. Create Table window will open</p><p>4. Copy the data from CSV and paste the in the Create table window</p><p>5. But here Power BI have the limitation to copy the data of less than 3000 cells</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*xo9WrOROQFRcvEsLnaY66g.png" /></figure><p>6. So this approach will work only if we have less data I.e around 3000 cells of data</p><p><strong>Second Approach:</strong></p><p>1. Open Power BI Desktop</p><p>2. Load the data from CSV</p><p>3. Open Query Editor</p><p>4. Remove the step Promoted Headers if the headers are promoted from first row</p><p>5. Select all the columns. Right click and click on Merge to merge all the columns</p><p>6. Select the comma as separator, click OK. All the columns are merged into one column</p><p>7. Convert the column into a List. Convert to List is available in Transform section</p><p>8. Click on Advance Editor. New window will open</p><p>9. Add the step to combine all rows into one with the separator ‘=’ and the output should be that step</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*RQqIIbm9TZ-rnTawoaXbBQ.png" /></figure><p>10. Click OK, Copy the text</p><p>11. Click on New Source and select Blank Query</p><p>12. Click on advance editor for the new query</p><p>13. Enter the copied text in source. It will look like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*4fYc78SLGYN7cdMpkjqUMg.png" /></figure><p>14. Conver the text into a table</p><p>15. Click on Split column in Transform</p><p>16. Select the Equal sign as separator and choose split into as Rows</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*sbqKTPa-DuxJ33uid_J4jQ.png" /></figure><p>17. All rows will be separated. Now we have to split the columns which are separated by comma</p><p>18. Click on Split column, choose comma as separator. Click OK</p><p>19. Delete the existed datasource which loaded using CSV file</p><p>20. Load data from another datasources.</p><p>21. Create report and publish</p><p>22. Add the schedules to refresh the data</p><p>23. We do not need any gateway to refresh the local csv data file as we have embedded the data in Power BI report itself.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df77a96748c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Display Last N Month and Selected Month data using Date Dimension in Power BI]]></title>
            <link>https://ramvudugula9.medium.com/display-last-n-month-and-selected-month-data-using-date-dimension-in-power-bi-73281ba8496b?source=rss-1d0831fc2c90------2</link>
            <guid isPermaLink="false">https://medium.com/p/73281ba8496b</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[microsoft-power-bi]]></category>
            <category><![CDATA[power-bi]]></category>
            <dc:creator><![CDATA[Ramu Vudugula]]></dc:creator>
            <pubDate>Wed, 29 Apr 2020 08:11:28 GMT</pubDate>
            <atom:updated>2020-04-29T08:11:28.404Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Requirement:</strong> In the Power BI report I have a Date dimension and Employee fact tables. In report I have added single select month slicer, year slicer and a line chart which should show month wise employee terminations count. Current report will look like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*fIH7sECyBr5NxK__lD-adw.png" /></figure><p>As month is single select, Month over Month terms chart is showing data for the only selected month. But I want the last 3 months data along with the selected month in Month over Month terms chart</p><p>Ex: In the above image, month July is selected so chart should show data for April, May, June and July months.</p><p><strong>Solution:</strong></p><p>1. In the Power BI report we have Date dimension and Employee fact tables.</p><p>2. Date dimension and Employee fact table are related with a date column</p><p>3. In Date dimension we have a new column which is combination of both year and month in Month — Year format</p><p>4. In Employee fact we have term column which will give the termination status of the employee</p><p>5. Go to Employee fact table</p><p>6. Click on create new measure</p><p>7. Enter below expression</p><p>Measure Terms = CALCULATE(SUM(Employee[term]), DATESINPERIOD(‘Date’[Date].[Date], MAX(‘Date’[Date].[Date]), -4, MONTH))</p><p>8. In the above expression, we are calculating the total terms between the two date values</p><p>9. As per the requirement we have to show last 3 months data along with selected month so I have used number 4 in the expression. (Based on user requirement change that value)</p><p>10. Use the measure created above in the chart</p><p>11. Now the chart will look like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*QEx_D-c3DYI5boWWWmsZlQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73281ba8496b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scheduling a Pipeline in Azure Data Factory]]></title>
            <link>https://ramvudugula9.medium.com/scheduling-a-pipeline-in-azure-data-factory-e7498c7ca00?source=rss-1d0831fc2c90------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7498c7ca00</guid>
            <category><![CDATA[schedule]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[azure-data-factory]]></category>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[data-pipeline]]></category>
            <dc:creator><![CDATA[Ramu Vudugula]]></dc:creator>
            <pubDate>Thu, 27 Feb 2020 03:40:14 GMT</pubDate>
            <atom:updated>2020-02-27T03:40:14.369Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Requirement:</strong> How to schedule a pipeline to run on a daily basis in Azure Data Factory</p><p><strong>Solution:</strong></p><ol><li>Log into Azure Portal, Open existed pipeline in data factory</li><li>On the top header we have Trigger option</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/0*B7VBOSJ9cGw2791w.png" /></figure><p>3. Click on Trigger and we will get the two options I.e 1) Trigger Now 2) New/Edit</p><p>4. Trigger Now option will trigger the pipeline immediately</p><p>5. New/Edit option will show existed schedules if any and we can create new schedules also</p><p>6. Click on New/Edit option, it will open a window</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/0*Bp-s7LYHklGNNHts.png" /></figure><p>7. Click on Choose trigger. It will give two options like new and it will show existed schedule names. If we click on existed then we will get the option to edit that</p><p>8. Click on New and it will open a new window with list of options for scheduling</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/0*4lq42KSsd0pOp1ap.png" /></figure><p>9. Enter the name of the trigger, description. Select the Type as schedule</p><p>10. Select start date as per the timezone</p><p>11. Recurrence can be in minutes, hours, days, weeks and months</p><p>12. Select the end date. It can be either no end date or a particular end date</p><p>13. Activated should be Yes. If we select No then it will trigger and later we can change to Yes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/0*WdiM28jUZ5ubYemL.png" /></figure><p>14. Click OK and then publish the pipeline</p><p>15. To check the Triggers status, on the left menu click on Monitor and click on Trigger runs. Here we have the list of triggers which executed in the selected time period</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/0*qBXQUOXZlDWIIi8N.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7498c7ca00" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Connecting to PostgreSQL Database in Power BI Desktop]]></title>
            <link>https://ramvudugula9.medium.com/connecting-to-postgresql-database-in-power-bi-desktop-a0baf8c85f20?source=rss-1d0831fc2c90------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0baf8c85f20</guid>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[postgres]]></category>
            <category><![CDATA[microsoft-power-bi]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Ramu Vudugula]]></dc:creator>
            <pubDate>Fri, 30 Aug 2019 17:54:23 GMT</pubDate>
            <atom:updated>2020-04-29T08:07:47.775Z</atom:updated>
            <content:encoded><![CDATA[<p>Microsoft Power BI Desktop is a business intelligence tool which can be used to connect to any type data source I.e either a file or from a database, transform and visualize the data.</p><p>In Power BI Desktop, we can connect to data from many different sources. To connect to data, select Get Data from the Home. Select the down arrow, or the Get Data text on the button, it shows the most common data types and on clicking on more it will open a window with all the data types available in Power BI Desktop. See the below images:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/347/0*yJF7CflyvuU-VhSp.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/0*ed6UO_5JOchqP2l0.png" /></figure><ol><li>Here we will connect to postgresql database</li><li>Select the postgresql database connector and click on Connect. Unfortunately we are getting the error as below image</li><li>Click on Learn More and it will open the below link</li><li>Install the latest version of the Npgsql and restart the machine. This will not resolve the error.</li><li>To resolve this, we have an alternative solution to connect PostgreSQL database i.e. using <strong>“ODBC”</strong> generic database connector.</li><li>Using the below link download the latest version of ODBC connection for PostgreSQL database and Install</li><li>After installation completed, open the Power BI Desktop and choose Get Data</li><li>Instead of selecting postgresql database, this time we will choose ODBC. Select ODBC and click on Connect</li><li>A window will open and select <strong>“None”</strong> as Datasource Name (DSN)</li><li>In the same window, we have connection string. Here we have to provide proper connection details to connect postgresql database. We won’t be able to click <strong>“OK”</strong> until we have provided the correct connection string. See the below image</li><li>To get the proper connection string use this link.</li><li>We have given the below connection string and able to click on <strong>“OK”</strong></li></ol><pre>Connection String: Driver={PostgreSQL ANSI(x64)}; Server=localhost; Port=5433; Database=foodmart</pre><ol><li>Then it will open a window to enter the credentials</li><li>Enter the username and password and click on connect</li><li>Now it will open a window with list of tables available in the selected database.</li><li>Choose the table whatever you need and play with data.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0baf8c85f20" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>