<?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 Varsha Hindupur on Medium]]></title>
        <description><![CDATA[Stories by Varsha Hindupur on Medium]]></description>
        <link>https://medium.com/@varsha.hindupur?source=rss-8639e0204d2a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*cuAEmPVFLr60f7WG</url>
            <title>Stories by Varsha Hindupur on Medium</title>
            <link>https://medium.com/@varsha.hindupur?source=rss-8639e0204d2a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:55:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@varsha.hindupur/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[ML Prediction Model Deployment in AWS EKS]]></title>
            <link>https://medium.com/@varsha.hindupur/ml-prediction-model-deployment-in-aws-eks-75d017507a61?source=rss-8639e0204d2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/75d017507a61</guid>
            <dc:creator><![CDATA[Varsha Hindupur]]></dc:creator>
            <pubDate>Sat, 15 Mar 2025 05:45:41 GMT</pubDate>
            <atom:updated>2025-03-15T18:35:04.745Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Deploying machine learning models in production involves multiple steps, including containerization, orchestration, and exposing APIs for real-time inference. In this guide, we’ll deploy a <strong>price</strong> <strong>prediction model</strong> on <strong>AWS Elastic Kubernetes Service (EKS)</strong> using <strong>Docker, Kubernetes, and AWS ECR</strong>.</p><h3>Prerequisites</h3><p>Before proceeding, ensure you have:</p><ul><li>An <strong>AWS account</strong> with appropriate IAM roles.</li><li><strong>AWS CLI</strong> and <strong>kubectl</strong> installed and configured.</li><li><strong>Docker</strong> installed for containerization.</li><li><strong>Terraform</strong> for provisioning AWS infrastructure.</li><li><strong>Python</strong> with Flask and required dependencies.</li></ul><h3>Step 1: Model Preparation</h3><p>We assume you have a trained model stored as model.pkl, along with a scaler.pkl and label_encoders.pkl. The Flask application loads these assets and exposes a /predict endpoint.</p><pre># app.py<br>from flask import Flask, request, jsonify<br>import joblib<br>import numpy as np<br>import os<br>app = Flask(__name__)<br>model = joblib.load(&quot;model.pkl&quot;)<br>scaler = joblib.load(&quot;scaler.pkl&quot;)<br>label_encoders = joblib.load(&quot;label_encoders.pkl&quot;)<br>@app.route(&#39;/predict&#39;, methods=[&#39;POST&#39;])<br>def predict():<br> data = request.get_json()<br> features = np.array(data[&#39;features&#39;]).reshape(1, -1)<br> features_scaled = scaler.transform(features)<br> prediction = model.predict(features_scaled)[0]<br> return jsonify({&#39;prediction&#39;: float(prediction)})<br>if __name__ == &quot;__main__&quot;:<br> app.run(host=&#39;0.0.0.0&#39;, port=5001)</pre><h3>Step 2: Containerization with Docker</h3><h4>Dockerfile</h4><pre># Dockerfile<br>FROM python:3.9-slim<br>WORKDIR /app<br>COPY . /app<br>RUN pip install - no-cache-dir -r requirements.txt<br>CMD [&quot;python&quot;, &quot;app.py&quot;]</pre><h4>Build and Push Docker Image to AWS ECR</h4><pre>aws ecr create-repository - repository-name hpp-app - region us-east-1<br>docker buildx build - platform linux/amd64 -t 381491906666.dkr.ecr.us-east-1.amazonaws.com/hpp-app:latest .<br>docker push 381491906666.dkr.ecr.us-east-1.amazonaws.com/hpp-app:latest</pre><h3>Step 3: Provisioning Infrastructure using Terraform</h3><pre># eks.tf<br>module &quot;eks&quot; {<br>  source  = &quot;terraform-aws-modules/eks/aws&quot;<br>  cluster_name    = &quot;hppmodelapp-eks-cluster&quot;<br>  cluster_version = &quot;1.32&quot;<br>  vpc_id     = module.vpc.vpc_id<br>  subnet_ids = module.vpc.private_subnets<br>  eks_managed_node_groups = {<br>    default = {<br>      instance_types = [&quot;t3.medium&quot;]<br>      desired_capacity = 2<br>    }<br>  }<br>}</pre><pre>terraform init<br>terraform apply -auto-approve</pre><h3>Step 4: Deploying to Kubernetes</h3><p>deployment.yaml</p><pre># deployment.yaml<br>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: house-price-prediction-app-deployment<br>spec:<br>  replicas: 3<br>  selector:<br>    matchLabels:<br>      app: model_deployment_hpp<br>  template:<br>    metadata:<br>      labels:<br>        app: model_deployment_hpp<br>    spec:<br>      containers:<br>      - name: house-price-prediction-container<br>        image: 381491906666.dkr.ecr.us-east-1.amazonaws.com/hpp-app:latest<br>        imagePullPolicy: Always<br>        ports:<br>        - containerPort: 5001</pre><p><strong>service.yaml</strong></p><pre>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: house-price-prediction-app-service<br>spec:<br>  selector:<br>    app: model_deployment_hpp<br>  ports:<br>    - protocol: TCP<br>      port: 5001<br>      targetPort: 5001<br>  type: LoadBalancer</pre><p>Apply Kubernetes Configuration</p><pre>kubectl apply -f deployment.yaml<br>kubectl apply -f service.yaml<br>kubectl get services</pre><h4>Step 5: Testing the Deployment</h4><pre>curl -X POST &quot;http://&lt;EXTERNAL-IP&gt;:5001/predict&quot; \<br>     -H &quot;Content-Type: application/json&quot; \<br>     --data &#39;{&quot;features&quot;:[60, 8450, 5, 2003, 2003, 0, 856, &quot;RL&quot;, &quot;Inside&quot;, &quot;1Fam&quot;, &quot;VinylSd&quot;]}&#39;</pre><h3>Common Issues and Fixes</h3><pre>| Issue                             | Cause                                    | Fix                                                                 |<br>|-----------------------------------|------------------------------------------|---------------------------------------------------------------------|<br>| `Unauthorized` error in `kubectl` | IAM role lacks cluster access            | Add IAM role in `aws-auth` config map                               |<br>| `ImagePullBackOff`                | Nodes can&#39;t pull image                   | Attach `AmazonEC2ContainerRegistryReadOnly` policy to node IAM role |<br>| `exec format error`               | Image built for wrong arch               | Build with `--platform linux/amd64`                                 |<br>| `400 Bad Request`                 | Invalid JSON formatting                  | Ensure `--data` uses valid JSON                                     |<br>| `Push declined`                   | Secrets detected in Git                  | Remove secrets and rewrite commit history                           |<br>| `ErrImageNeverPull`               | Incorrect image in deployment            | Verify ECR image and manifest                                       |<br>| `CrashLoopBackOff`                | App keeps restarting                     | Check logs with `kubectl logs`                                      |</pre><h3>Conclusion</h3><p>This guide covered end-to-end deployment of a <strong>house price prediction model</strong> on <strong>AWS EKS</strong>. With <strong>Terraform</strong>, <strong>Docker</strong>, and <strong>Kubernetes</strong>, we automated infrastructure and deployment, ensuring a scalable and production-ready solution.</p><p><strong>Source Code [GitHub]: </strong><a href="https://github.com/varshahindupur09/housing_price_prediction_model_deployment">https://github.com/varshahindupur09/housing_price_prediction_model_deployment</a></p><p>Support by star marking, leaving comments, following and sharing.</p><p>Heartfelt thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75d017507a61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Concept to Deployment: Leveraging AWS for a Large-Scale Survey Application]]></title>
            <link>https://medium.com/@varsha.hindupur/from-concept-to-deployment-leveraging-aws-for-a-large-scale-survey-application-349eed74ec3f?source=rss-8639e0204d2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/349eed74ec3f</guid>
            <dc:creator><![CDATA[Varsha Hindupur]]></dc:creator>
            <pubDate>Wed, 28 Aug 2024 05:03:02 GMT</pubDate>
            <atom:updated>2024-08-28T05:03:02.466Z</atom:updated>
            <content:encoded><![CDATA[<h4>Introduction:</h4><p>In the ever-evolving field of software development, creating solutions that can handle extensive data while remaining scalable and reliable is a formidable challenge. My experience as a Graduate Research Assistant at Northeastern University involved just that — designing and developing a comprehensive software solution for a survey application that not only supported a PhD dissertation but also managed to collect responses from over 2 million participants through Prolific.</p><h4>The Challenge:</h4><p>The project’s primary challenge was to develop an application capable of handling a massive volume of data input seamlessly and providing real-time analytics through a dashboard. The goal was not only to facilitate the collection of a large number of survey responses but also to derive insightful analytics that could drive academic research forward.</p><h4>Architecture of Application Deployment:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yEU7I2HrqJrJYJFsUa6ymw.png" /><figcaption>Architecture Of The Application</figcaption></figure><h4>Design and Development:</h4><p>As a Solution Architect and Full Stack Engineer, my role encompassed the entire lifecycle of the application — from conceptualization to deployment. The application architecture was designed to be robust, leveraging various AWS services to ensure scalability and reliability.</p><ol><li><strong>AWS Route 53</strong> was utilized for efficient DNS management.</li><li><strong>Amazon S3</strong> served as our storage solution for its scalability and data availability.</li><li><strong>AWS CloudFront</strong> ensured fast delivery of content globally.</li><li><strong>AWS Elastic Beanstalk</strong> simplified the deployment and scaling of our application.</li><li><strong>MongoDB</strong>, hosted on AWS, handled our database needs with flexibility and efficient data retrieval.</li><li><strong>Docker</strong> containers were used to create, deploy, and run applications by using containers that allowed for quicker deployments and isolated environments.</li></ol><ul><li><strong>Frontend:</strong> Built with <strong>React</strong>, this JavaScript library facilitated a dynamic and responsive user interface, perfect for managing and presenting large data volumes efficiently.</li><li><strong>Backend:</strong> We used <strong>Node.js</strong> for its non-blocking, event-driven capabilities, ideal for our data-intensive, real-time application. Integration with <strong>Mongoose</strong> <strong>ORM</strong> streamlined our MongoDB database interactions, providing a schema-based modeling approach that enhanced our backend’s efficiency and scalability.</li></ul><h4>Cost-Effectiveness and Scalability with AWS Elastic Beanstalk</h4><p>A critical component of this project was to manage costs effectively while ensuring scalability and reliability. AWS Elastic Beanstalk emerged as the ideal solution for this requirement. While Elastic Beanstalk itself does not incur additional charges, it utilizes underlying AWS services like EC2, where the costs are based on resource usage. This model allowed us to maintain a lean budget during periods of low traffic while seamlessly scaling up resources during peak loads, ensuring that we only paid for the resources we used.</p><p><strong>Why Elastic Beanstalk?</strong></p><p>The choice of Elastic Beanstalk was strategic, driven by the need to accommodate stakeholders with varying levels of technical expertise. Understanding that the application might need to be managed by someone from a non-technical background post-deployment, it was crucial to choose a platform that simplified complex cloud management tasks. Elastic Beanstalk fits this need perfectly by abstracting the underlying infrastructure management. It automates the deployment, from capacity provisioning and load balancing to auto-scaling and application health monitoring — thus allowing non-technical team members to manage the application without deep cloud infrastructure knowledge.</p><p>Production Environment — AWS Elastic Beanstalk:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y_8yEFDVFEe-ZJUkNc3ipg.png" /><figcaption>Backend Deployed at AWS Elastic Beanstalk</figcaption></figure><p><strong>Navigating the Configuration Challenge</strong></p><p>Configuring Elastic Beanstalk was not without its challenges, especially given the complexity of AWS configurations involving Virtual Private Clouds (VPCs), subnets, security groups, and Elastic Load Balancers (ELBs). Each component had to be meticulously configured to ensure security, connectivity, and performance. For instance:</p><ul><li><strong>VPCs and Subnets:</strong> Setting up VPCs and subnets allowed us to isolate and control the environment where our application instances ran, enhancing security and reducing risk.</li><li><strong>Security Groups:</strong> These acted as virtual firewalls that controlled the traffic to and from instances, ensuring that only legitimate traffic could access our application.</li><li><strong>Elastic Load Balancing:</strong> ELBs were crucial for distributing incoming application traffic across multiple targets, such as EC2 instances, in multiple Availability Zones, which increases the fault tolerance of the application.</li></ul><p>The process of integrating all these components within Elastic Beanstalk’s environment required a deep understanding of both the application’s architecture and AWS services. This knowledge was essential not only for deploying the application but also for ensuring its smooth operation during scaling operations, whether scaling up during high-demand periods or scaling down to save costs during quieter times.</p><p>Production Environment — Cloudfront:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jB2t9tF7X71AgCtSO3kECA.png" /><figcaption>Frontend Deployed at AWS Cloudfront &amp; S3</figcaption></figure><p>Web App deployed and available for users to answer the survey questions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VV9qFn6-Lupc6IDNhIWEIg.png" /><figcaption>Deployed Web App</figcaption></figure><h4>Implementation</h4><p>The backend was meticulously crafted to handle numerous simultaneous responses without any downtime or lag. I utilized Node.js for its non-blocking, event-driven architecture, which was ideal for our data-intensive real-time application that ran across distributed devices.</p><h4>Analytics and Dashboarding</h4><p>Finally using AWS QuickSight, I built an initial analysis dashboard that provided real-time data visualization, helping us to understand trends, patterns, and anomalies in the survey data. This dashboard was crucial for the PhD candidate to derive meaningful insights from the responses collected.</p><h4>Lessons Learned</h4><p>This project was not just a test of technical skills but also a lesson in project management and scalability. Some key takeaways include:</p><ul><li>The importance of choosing the right technology stack according to the project requirements.</li><li>The effectiveness of AWS services in managing large-scale applications.</li><li>The need for robust testing strategies to ensure the application performs under varying loads.</li><li>I had to switch out <strong>DynamoDB</strong> and <strong>ElastiCache</strong>, two excellent AWS services, due to their high costs.</li></ul><h4>Conclusion</h4><p>The journey from a concept on paper to a fully functional application taught me invaluable lessons about architecture design, scalability, and the practical challenges of handling big data. As software developers, our job is to not only write code but also to solve problems and make data handling efficient and user-friendly. The success of this survey application stands testament to what can be achieved with the right tools and a clear vision. Finally, participants are selected from Prolific application that has users signed up to participate in intellectual surveys.</p><p>I’d love to hear about how you’ve deployed your applications effectively! Connect with me on LinkedIn: <a href="https://www.linkedin.com/in/varsha-hindupur/">Varsha Hindupur</a>.</p><p>If you found this post helpful, feel free to give me a shoutout!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=349eed74ec3f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Summarizing lecture from Data+AI World Tour by Databricks: Delta Live Tables A to Z: Best Practices…]]></title>
            <link>https://medium.com/@varsha.hindupur/summarizing-lecture-from-data-ai-world-tour-by-databricks-delta-live-tables-a-to-z-best-practices-479fc704fbd2?source=rss-8639e0204d2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/479fc704fbd2</guid>
            <category><![CDATA[streaming]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[delta-live-tables]]></category>
            <dc:creator><![CDATA[Varsha Hindupur]]></dc:creator>
            <pubDate>Wed, 07 Feb 2024 19:30:59 GMT</pubDate>
            <atom:updated>2024-02-07T19:32:33.231Z</atom:updated>
            <content:encoded><![CDATA[<h3>Summarizing lecture from Data+AI World Tour by Databricks: Delta Live Tables A to Z: Best Practices for Modern Data Pipelines</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*5XJGyztRnVxi4CsFQW9f1Q.png" /><figcaption>Data AI Summit 2024</figcaption></figure><p>So, Data+AI World Tour is a part of Data Summit conducted by Databricks. Being one of the industry-wide most used product, it is quite interesting to know what they are offering to make Real-Time data available. This is mostly for Data Engineers but if you’re interested in ‘Data World’ you should definitely read.</p><p>This lecture was offered by <a href="https://medium.com/u/9736d1467320">Dillon Bostwick</a>, who is Lead Solution Architect at <a href="https://medium.com/u/5ae67e7eecef">Databricks</a>.</p><p>Let’s Begin! For starters, he is sharing why world needs Real-Time Analysis…</p><p>A noteworthy disclosure was presented by Databricks during the #dataaiworldtour on January 18, 2024, featuring insightful points from<a href="https://www.linkedin.com/feed/#"> Dillon Bostwick</a>. I became intrigued by the impact of Real-Time and near Real-Time processes, particularly when Bostwick highlighted<a href="https://www.linkedin.com/feed/#"> </a><a href="https://medium.com/u/d4db316fdaa6">TikTok</a> utilization of real-time data, with just a <strong>one-second</strong> latency, to enhance model training and refine their recommendation system by putting this newly acquired analysis back into production. This distinguishes<a href="https://www.linkedin.com/feed/#"> </a>ByteDance in the industry. This development is remarkably impressive and emblematic of the current evolution within the industry. It is interesting to know how after COVID they actually thought about real-time scoring, training the model on newest data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h-sGqjDnHNZFViXE1Hxx1Q.png" /><figcaption>Use-Cases where Real-Time needed</figcaption></figure><p>Consider another scenario where seconds and even milliseconds are critical, such as in intrusion detection and fraud detection, where IoT sensors continuously transmit data, demanding prompt capture and analysis. Yet, in high-frequency trading, even nanoseconds and microseconds are of paramount importance. In this context, the length of cables between hedge fund servers and Stock Exchange servers is meticulously regulated. This is because a mere difference of a few feet in cable length could provide a hedge fund with a nanosecond advantage, enabling them to gain insight into the market before others and potentially make millions. This underscores the significance of distinguishing between true real-time and near real-time, emphasizing the crucial implications of timing precision in various use cases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UZwfwT70W1ERkwJnaa543w.png" /><figcaption>Batch vs Streaming Data</figcaption></figure><p>Transitioning from capturing data on a weekly, daily, or even minute-by-minute basis to a second-by-second frequency poses challenges for data engineers. What’s crucial to recognize is the necessity for architecting solutions that facilitate this transition seamlessly, without requiring a lengthy timeframe of 3–5 years. What CEOs and leaders require today is the ability to process data at the right time, tailored to specific business needs.</p><p><strong><em>Delta Live Tables (DLT) </em></strong>offers a solution by providing an abstraction layer between the data engineering processes and the business logic being addressed. With DLT, querying the production pipeline becomes as simple as adding the keyword “<strong><em>LIVE</em></strong>,” streamlining the process of accessing data with a granularity ranging from weeks to minutes through a single click. This frees up time for users to concentrate on developing business logic and implementing specific business rules.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7_R9oYQnwRDyt61Vmrqjeg.png" /><figcaption>Introduction to DLT</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iMwbTKqPiUl15kLrwlGv9A.png" /><figcaption>Definition of Live Tables</figcaption></figure><p><strong><em>Live Tables</em></strong> serve as <strong><em>materialized views</em></strong> within the <strong><em>lakehouse</em></strong> architecture. <strong><em>Delta Live Tables (DLT)</em></strong> provide a declarative representation of data, requiring users to specify the desired data structure purely at the business level. The engine then manages tasks such as determining refresh intervals, incremental computations, cluster requirements, and handling dependencies autonomously. Users simply declare their requirements, and the engine handles the implementation details.</p><p>In this context, <strong><em>tables represent persistent data</em></strong>, while views offer abstract representations without persistence. When querying a view, the engine dynamically manages persistence and delivers the required data.</p><p>Knowing when to use Delta Live Tables (DLT) is akin to understanding when to utilize materialized views. From a syntactical perspective, the “CREATE OR REPLACE” keyword doesn’t fully leverage the engine’s capability to comprehend user requirements.</p><pre># Previously<br>CREATE OR REPLACE TABLE report AS SELECT sum(profit) FROM prod.sales</pre><pre># DLT<br>CREATE LIVE TABLE report AS SELECT sum(profit) FROM cloud_files (prod.sales)</pre><pre># Streaming DLT<br>CREATE STREAMING LIVE TABLE report AS SELECT sum(profit) FROM cloud_files (prod.sales)</pre><p>But Live keyword here is using DLT-as-a-Service at the backend.</p><p>The “Live” keyword in this context refers to utilizing Delta Live Tables (DLT) as a service at the backend.</p><p>A <strong><em>Streaming Live Table (SLT)</em></strong> ensures that data processing occurs in a single order and exactly once, a challenging task in distributed systems due to the large volume of data involved. Streaming typically implies dealing with unbounded or infinite data streams. SLT guarantees that data is neither duplicated nor skipped and maintains proper order. Its incremental nature allows for achieving lower latencies with the click of a button.</p><p>Despite its computational complexity, SLT can be cost-effective. By executing operations once a day or week with low latency, it becomes less expensive than non-streaming tables. SLT computes results over append-only streams like Kafka, Kinesis, or Auto Loader (files on cloud storage). Importantly, streaming tables can be transformed into Live tables, offering flexibility in data processing.</p><p>What more could be done? How will this improve my ETL pipeline?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5t8Mbl1rayt93TbFvNBIYw.png" /><figcaption>DLT SQL Pipeline</figcaption></figure><p>Regular SQL queries often fall short in providing comprehensive visibility into data flows between tables, discovering metadata, assessing the quality of each table, accessing historical updates, and controlling operations. <strong><em>Delta Live Tables (DLT) offers a robust solution by enabling users to dive deep into events and efficiently debug issues.</em></strong></p><p><strong><em>DLT’s capabilities surpass those of traditional SQL queries</em></strong>, providing enhanced visibility into data flows and operations. It facilitates the discovery of bugs at precise locations within the data pipeline, a feature that SQL alone cannot achieve. Additionally, DLT has the potential to replace <strong><em>Airflow DAGs (Directed Acyclic Graphs) </em></strong>by offering superior visibility and control over data processing tasks. The engine underlying DLT comprehensively understands user actions, providing unparalleled visibility into data operations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C6tAKy7RA46viA07joP1ew.png" /><figcaption>TP CDI comparison with Spark and Delta Lake v/s Delta Live Tables</figcaption></figure><p>During the TP CDI benchmark comparison between the regular Databricks Baseline Pipeline built with Spark and Delta Lake versus Delta Live Tables (DLT), DLT showcased its efficiency, as evidenced in the image where it effectively saturated CPU loads across an equivalent number of workers. This observation was made through the Ganglia UI, where darker boxes indicated heavier loads, highlighting DLT’s ability to optimize resource utilization.</p><p>DLT’s efficiency stems from its capability to comprehensively visualize Directed Acyclic Graphs (DAGs) and pipeline objects, allowing for more intelligent cluster management. This efficiency translated into a 2x Total Cost of Ownership (TCO) improvement, enhanced performance, and reduced costs. Moreover, DLT offers built-in event logging via event logs, facilitating automatic recording of pipeline operations and enabling the creation of KPI dashboards. Additionally, DLT enhances data quality and seamlessly integrates with other logging software.</p><p>One of the standout features of DLT is its support for dynamic pipeline creation through programmatically generating tables using Python, overcoming the limitations of traditional SQL. Furthermore, DLT allows for the implementation of stored procedures in Python, eliminating the need to learn additional languages, thus leveraging the familiarity and versatility of Python for pipeline development.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QgI5oGGvv0Ss4QRiiYqKQg.png" /><figcaption>DLT’s Efficiency over regular ETL pipelines</figcaption></figure><p>Enzyme is a tool that automates and optimizes the <strong><em>incrementalization</em></strong> process in ETL (Extract, Transform, Load) pipelines. By analyzing various strategies and running a cost model, Enzyme can provide recommendations on how to efficiently create incremental ETL pipelines while minimizing costs. <strong><em>This automation allows users to streamline their ETL processes and make informed decisions on optimizing their data workflows for cost efficiency.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hPVDOpnDvSIHhqVo4TlBKw.png" /><figcaption>Introducing Enzyme</figcaption></figure><p>Hopefully, if you like this I can summarize more, this was a fantastic approach built by Databricks team.</p><p>Thanks for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=479fc704fbd2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LeetCode & HackerRank Adventures: Conquering Advanced SQL and Windows Functions for Database…]]></title>
            <link>https://medium.com/@varsha.hindupur/leetcode-hackerrank-adventures-conquering-advanced-sql-and-windows-functions-for-database-8c3b9e205038?source=rss-8639e0204d2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c3b9e205038</guid>
            <category><![CDATA[learning-mysql]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[sqlite]]></category>
            <category><![CDATA[sql-window-functions]]></category>
            <category><![CDATA[window-functions]]></category>
            <dc:creator><![CDATA[Varsha Hindupur]]></dc:creator>
            <pubDate>Tue, 06 Feb 2024 03:43:56 GMT</pubDate>
            <atom:updated>2024-02-22T15:31:58.900Z</atom:updated>
            <content:encoded><![CDATA[<h3>LeetCode &amp; HackerRank Adventures: Conquering Advanced SQL and Windows Functions for Database Mastery</h3><p><em>Subtitle: A 10-Day Journey to SQL Excellence</em></p><p>THE 10-DAY CHALLENGE</p><p>This article chronicles my journey of mastering Advanced SQL and Windows Functions in just 10 days. The key to success lies in setting a target date and diligently following it. Establish specific target hours for daily practice, as the more you delve into the concepts, the better your understanding will become. Throughout this article, I share examples that serve as a stepping stone. By starting with simpler problems, you can gradually tackle more intricate challenges, gaining a deeper understanding of the concepts along the way.</p><p>You can build tables, insert values and compile your problems effectively on <a href="https://www.mycompiler.io/new/mysql">https://www.mycompiler.io/new/mysql</a> . An example table and insert columns are provided in the new MySQL page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*VbuHDHzWazK8_0IBjNOE_A.png" /><figcaption>MyCompiler for solving your MySQL problems</figcaption></figure><p>THE MOTIVATION</p><p>As a database enthusiast, I recognized the increasing importance of not just SQL basics but the advanced features that can unlock powerful insights from databases. The decision to embark on this 10-day challenge was fueled by a desire to deepen my SQL expertise, particularly in the realm of Windows Functions, and share the insights gained along the way.</p><h4>Day 1: Introduction to SQL Essentials</h4><p>You can go through readily available databases to understand WHY you’re querying the specific result? This allows comprehending how to work on particular use-case or debug if the values are missing or incorrect.</p><pre>-- Retrieving all columns from the &quot;employees&quot; table<br>SELECT * FROM employees;</pre><pre>-- Retrieving employees with salaries greater than 50000<br>SELECT employee_id, first_name, last_name, salary<br>FROM employees<br>WHERE salary &gt; 50000;</pre><h4>Day 2–3: Diving Deeper into SQL</h4><pre>-- Retrieving employees and their departments using INNER JOIN<br>SELECT employees.employee_id, employees.first_name, employees.last_name, departments.department_name<br>FROM employees<br>INNER JOIN departments ON employees.department_id = departments.department_id;</pre><p>Learn about INNER, I, LEFT, RIGHT, FULL OUTER joins and their usage. I have re-shared a short post on these joins in my LinkedIn page.</p><p>You might also come across some functions like COALESCE. The COALESCE function in MySQL picks the first non-null value from a list of values and returns it. If all values are null, it gives back a null result.</p><h4>Day 3–5: Group By and Aggregate Functions</h4><p>Learning that aggregate functions clauses are specifically mentioned in HAVING clause is the most important part here. Solving specific examples this observation can be made stronger.</p><pre>-- List the Products Ordered in a Period<br>select product_name, <br>       sum(o.unit) as unit<br>from Products p join Orders o on p.product_id = o.product_id<br>where <br>    order_date like &#39;2020-02%&#39;<br>group by o.product_id<br>having unit &gt;= 100</pre><p>This was a great example as understanding the simple difference between WHERE and HAVING clause.</p><h4>Day 6–8: Advanced SQL Techniques</h4><p>Explore the power of Window Functions, a feature in SQL that allows for more complex and insightful queries. Dive into key functions like ROW_NUMBER(), RANK(), DENSE_RANK(), and NTILE(), gaining a deeper understanding of how they provide valuable insights into your data.</p><p>The PARTITION BY and ORDER BY clauses are the essential components in leveraging Window Functions effectively. Understanding how these clauses help you organize and analyze your data, allows room for solving more nuanced and targeted results.</p><pre>with RankedEmployees as (<br>    select <br>        d.name as Department, <br>        e.name as Employee,<br>        e.salary as Salary, <br>        RANK() OVER ( PARTITION BY e.departmentid <br>        ORDER BY e.salary DESC ) as regular_rank,<br>        DENSE_RANK() OVER ( PARTITION BY e.departmentid <br>        ORDER BY e.salary DESC ) as dense_ranking,<br>        ROW_NUMBER() OVER (PARTITION BY departmentid ORDER BY salary DESC) AS RowNumber,<br>        NTILE(4) OVER (PARTITION BY e.departmentId ORDER BY e.salary DESC) AS SalaryQuartile<br>    from employee e join department d<br>    on e.departmentid = d.id<br>)<br>SELECT<br>    Department,<br>    Employee,<br>    Salary,<br>    regular_rank,<br>    dense_ranking,<br>    rownumber,<br>    SalaryQuartile<br>FROM RankedEmployees<br>WHERE dense_ranking &lt;= 3;</pre><p>This SQL query selects the department, employee, salary, and various rankings (regular_rank, dense_ranking, and rownumber) from the RankedEmployees temporary result set, filtering only the top 3 earners in each department based on dense ranking.</p><p>This was a great example to understand difference between ROW_NUMBER(), RANK(), DENSE_RANK(), and NTILE()</p><h4>Day 9–11: Mastering Windows Functions</h4><p>This is the simplest example I used to comprehend LEAD() and LAG().</p><p>Suppose, a table StockPrices with columns stock_date and price. To find the percentage change in stock prices from the current day to the next day using the LEAD() and LAG() function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v_yNw3shj4cvnnOTZ5NeBw.png" /><figcaption>Lead Percentage Calculation in mycompiler.io</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L4nfWJjBKTEz_jwVTMB43A.png" /><figcaption>Lag Percentage Calculation in mycompiler.io</figcaption></figure><p>The key difference between the LEAD() and LAG() window functions is:</p><ol><li>LEAD(): Value of column accessed from the next row within partition</li><li>LAG(): Value of column is accessed from previous row within partition</li></ol><p>Now, you see the reason why Lead has NULL in last and LAG has NULL first. The former one calculates percentage in ascending order and former calculates percentage in descending order.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RuwfF-3wt27Yylud0rsoWg.png" /><figcaption>First and Last Value calculation on Stock Price Table</figcaption></figure><p>ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWINGdefines the window frame. UNBOUNDED PRECEDING means the window frame starts from the first row of the partition, and UNBOUNDED FOLLOWING means it ends at the last row of the partition.</p><p>This ensures that the window frame includes all rows in the partition.</p><p>And that’s how we get the last and the first price for a stock price table.</p><p>Hopefully, these examples were useful.</p><p>Thank you for reading my article, if you have any feedbacks please reach me out on LinkedIn: <a href="https://www.linkedin.com/in/varsha-hindupur-4aaa83175/">https://www.linkedin.com/in/varsha-hindupur-4aaa83175/</a></p><p>And visit my portfolio to know more about me: <a href="https://varshahindupur09.github.io/">https://varshahindupur09.github.io/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c3b9e205038" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bringing Your Streamlit Web App to Life on Azure App Services]]></title>
            <link>https://medium.com/@varsha.hindupur/bringing-your-streamlit-web-app-to-life-on-azure-app-services-a522bb01e875?source=rss-8639e0204d2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a522bb01e875</guid>
            <dc:creator><![CDATA[Varsha Hindupur]]></dc:creator>
            <pubDate>Thu, 12 Oct 2023 19:08:50 GMT</pubDate>
            <atom:updated>2023-10-12T19:08:50.963Z</atom:updated>
            <content:encoded><![CDATA[<p>There are numerous methods for deploying a Streamlit application. One option is to deploy it on a Public Cloud Platform like Streamlit Public, where you can host your application at no cost.</p><p>However, if you have the necessary resources, consider deploying your app on Azure App Service’s Basic plan, as it serves as an excellent starting point for your Azure Cloud learning journey. If not, utilize your own Azure Cloud environment and ensure to delete any resources that could potentially result in charges exceeding your actual usage.</p><p>While Microsoft Learn offers some relevant materials, I prefer sharing this article because it consolidates valuable information that is otherwise dispersed. Having all the necessary information in one place can facilitate a smoother beginning and inspire individuals to tackle more challenging tasks. That’s my belief, let’s start…</p><p>P.S. Download Docker, Python libraries, Visual Studio Code. Hopefully, this part you’re already aware of.</p><h3>Step 1: Create Dockerfile</h3><p>Working with Docker tool is little intrinsic so make sure that you have read the basics via its documentation. First learning the commands and then going to build them is really helpful.</p><pre>FROM python:3.11<br><br>EXPOSE 8051 <br><br>CMD mkdir -p /app<br><br>WORKDIR /app<br><br>COPY requirements.txt ./requirements.txt<br><br>RUN pip install --no-cache-dir -r requirements.txt<br><br>COPY . .<br><br>CMD [&quot;streamlit&quot;, &quot;run&quot;, &quot;app.py&quot;, &quot;--server.port=8051&quot;, &quot;--server.address=0.0.0.0&quot;, &quot;--server.enableWebsocketCompression=false&quot;]</pre><p>The major focus here is to launch the application using these 3 extra layers of commands.</p><ol><li>--server.port=8051: <strong><em>This option specifies the port on which the web server of the application should listen.</em></strong> In this case, it sets the server to listen on port 8051.</li><li>--server.address=0.0.0.0: This option sets the server&#39;s address to 0.0.0.0, which means it will listen on all available network interfaces. <strong><em>This is typically used to make the application accessible from outside the container (e.g., from the host system or the network).</em></strong></li><li>--server.enableWebsocketCompression=false: This option is related to WebSocket compression. Disabling compression may increase data transfer size but can be useful in some scenarios for compatibility or debugging.</li></ol><p>P.S. Without this App Service won’t understand which port to listen to. Even after specifying the same in EXPOSE. Basically, in a Dockerfile, the EXPOSE instruction is used to inform Docker that the container listens on specific network ports at runtime. <strong><em>It does not actually expose the ports to the host or external network, </em></strong><em>but it documents the ports on which the container is expected to listen for incoming connections.</em> So, this work is done by the command --server.port=8051</p><h3>Step 2: Create Docker Compose file</h3><pre>version: &#39;3&#39;<br>services:<br>  streamlit-app:<br>    build:<br>      context: .<br>    ports:<br>      - &quot;8051:8051&quot;  # Map port 8051 in the container to port 8051 on the host</pre><p>This is a sample <strong><em>docker-compose.yml</em></strong> file for your reference.</p><h3><strong>Step3: Adhering to the Directory Structure</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*I1_3jQYlwKFf9f-vyOewbQ.png" /><figcaption>Project Directory Structure</figcaption></figure><p>It’s essential to maintain the correct directory structure. Your Dockerfile should be located within the same project directory as your app.py. Additionally, if your project consists of multiple directories, such as front-end and back-end, you should maintain separate Dockerfiles for each component. Finally, in the main directory, it’s crucial to place the docker-compose.yml file for proper orchestration.</p><h3><strong>Step 4: Create your Resource Group, Azure Container Registry, Azure App Service</strong></h3><p>Numerous resources are available for reference when setting up these instances. In my case, I opted for the Azure App Service’s basic plan. However, it’s crucial to remember that after deploying your project, it’s equally important to release or delete the resources you’ve utilized for learning purposes. Capture snapshots of your setup and make sure to document them in your GitHub repository’s README file.</p><h3><strong>Step 5: Launch Docker Desktop and ensure it remains active in the background</strong></h3><p>Docker has it’s own memory requirements. See if your system satisfies these requirements. Open the VSCode or any other IDE that you’re working on and run the following commands.</p><p><strong><em>Command 1:</em></strong></p><pre>docker login &lt;appcontainername&gt;.azurecr.io -u &lt;appcontainername&gt; -p &lt;XYZZZ&gt;</pre><p>To access your credentials, navigate to ‘<strong>Web App</strong>,’ then ‘<strong>Access Keys</strong>,’ and you’ll find the ‘<strong>Username &amp; Password</strong>’ section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5XAfC0_T2SAclmIchyuRFQ.png" /><figcaption>Executed Command Image</figcaption></figure><p><strong><em>Command 2:</em></strong></p><pre>docker build -t &lt;image_name&gt;:latest .</pre><p>You can create your own name of the application image.</p><p><strong><em>Command 3:</em></strong><br>Add the port in Configuration section of your Web App.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*71MYuopsr7-BrZSF9gE7AQ.png" /><figcaption>Configuration in Azure App Service</figcaption></figure><p>Then run this command in CMD:</p><pre>docker run -d - name &lt;image_name&gt; -p 8051:8051 &lt;image_name&gt;:latest</pre><p>You can use the combination of different ports such as 8080:80 or 8080:8051. Just make sure the configurations are mentioned perfectly in Dockerfile, Docker Compose file and your App Service instance.</p><p>Also, now open your application in browser by using the following link:</p><pre><a href="https://localhost:8051/"><em>https://localhost:8051/</em></a></pre><p><strong><em>Command 4:</em></strong></p><pre>docker images</pre><p>This command will give you the image id which is useful for tagging the newly created docker image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*jZe2VkDxlEhq_ExKe14TfQ.png" /><figcaption>Copy the generated Image ID</figcaption></figure><p><strong><em>Command 5:</em></strong></p><pre>docker tag 93307837b283 &lt;appcontainername&gt;.azurecr.io/&lt;image_name&gt;:latest</pre><p><strong><em>Command 6:</em></strong></p><p>Push this newly created image in ACR (Azure Container Registry) and a repository will be created with the given image name and version latest.</p><pre>docker push &lt;appcontainername&gt;.azurecr.io/&lt;image_name&gt;:latest</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8eN2LwjA8qqgZn7JOuJIvQ.png" /></figure><p>This is how the image would now be visible in your container after the docker push command is completed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jL8wKZlxipJCdllD0rcsvQ.png" /><figcaption>Deployed Docker Image in ACR</figcaption></figure><h3>Step 6: Next, navigate to your App Service Deployment Center</h3><p>I have selected and utlized the ‘Single Container deployment’ option that was suitable as per my requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j3WLRl9Afhbf2p5knLZ5Rw.png" /><figcaption>Part : 1The Application Deployement</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y1f4E259FKz-zl3eMdbShw.png" /><figcaption>Part 2: Turning on the Continuous Deployment</figcaption></figure><p>And now the deployment of the application will begin. Give it sometime and check the Activity logs for further information on deployment process. Now check your application would be hosted on:</p><pre>https://&lt;appcontainername&gt;.azurewebsites.net/</pre><p>This information is also found in Overview section of the App Service.</p><p>Hopefully, this article has made your deployment journey easy.</p><p>Thank you. Bye. Have a good day.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a522bb01e875" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring Power BI’s Analytical Prowess: Unleash Your Data’s Secrets]]></title>
            <link>https://medium.com/@varsha.hindupur/power-bi-tricks-tips-fbec7652d652?source=rss-8639e0204d2a------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbec7652d652</guid>
            <category><![CDATA[power-bi-tutorials]]></category>
            <category><![CDATA[power-bi-training]]></category>
            <category><![CDATA[power-bi-desktop]]></category>
            <category><![CDATA[power-bi-interview]]></category>
            <category><![CDATA[power-bi]]></category>
            <dc:creator><![CDATA[Varsha Hindupur]]></dc:creator>
            <pubDate>Thu, 10 Aug 2023 22:12:34 GMT</pubDate>
            <atom:updated>2023-10-15T20:37:41.447Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/156/1*ArMC21NbZODmUqfIFtAwmA.png" /><figcaption>Power BI Logo</figcaption></figure><p>Microsoft’s Power BI (Business Intelligence) has great potential to creating dynamic and sophisticated reports. By following these tips and tricks, you can construct a report in just one day with dedicated exploration, a process that took me 2–3 weeks while sifting through a various learning tutorial.</p><p>This can be a very informative article please do it at your own pace &amp; suitable for any interview process.</p><p><em>P.S. Power BI is only available to Windows OS users.</em></p><p><strong>Pre-requisites:</strong></p><ol><li>A grasp of fundamental statistics concepts and familiarity with various types of charts and visualizations.</li><li>Data Manipulation, Basic Database Concepts, Problem-Solving Skills, Domain Knowledge and Practice and Exploration.</li></ol><p>Example Dashboard:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*za7XF-97fvXdIMCZ5Yt3Ig.png" /><figcaption>Dashboard for Employee’s Different Aspects Review</figcaption></figure><p><strong>Title: Connect to a Data Source / Change the Data Source</strong></p><p>For this article, I connect the csv file directly by choosing ‘Text/CSV’ option.</p><p>But on numerous occasions, I have used Sharepoint Folder, Sharepoint List or Salesforce Object as well.</p><p>Utilizing these choices enables you to retain access to your real-time modified data. Otherwise, you might need to re-establish the connection to your data source, resulting in the need to reconstruct your charts.</p><p>Therefore, if you are confident that you won’t be altering your data by introducing new columns or modifying titles, working with MS Excel is a viable option.</p><p>Of utmost significance, ensure to click on “Transform Data” and validate it prior to loading your data into Power BI.</p><p><strong>Title: Data Analysis — Determining Appropriate Chart Type for Your Needs</strong></p><p>Understanding what type of chart will allow you to make your analysis is the most challenging part of the Data Analysis journey.</p><p><em>The key is to think like a leader or your manager.</em></p><p>In my Employee Analysis data, I would like to first see the “Age v/s Performance Score”. This dashboard has changed font type, color &amp; font size formats will allows me to view the Charts as per my company pre-defined standards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-1G57BD6ezEaFlJU9eDZ-w.png" /></figure><p>The charts in this dashboard are designed to provide users with insights into the performance scores received by people in different age groups, including the minimum, average, and maximum scores. The last chart aims to show the performance ratings of employees in the company and the percentage of total individuals in each rating group.</p><p><strong>Title: Report, Data and Model View</strong></p><p>This is a particularly intriguing view as it allows someone to modify the way the data within the columns appear.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*25TPX50aPhrCafiNs0sxQw.png" /></figure><p>The report view is the Dashboard or the Report an individual creates to represent information in a pictorial or easy to understand format.</p><p>The table view will allow you to modify your data in a very easier way and applies the changes immediately to your reports.</p><p>The model view illustrates the relationships that each table has with other tables, similar to the relationships existing in a database. These relationships include one-to-one, many-to-one, one-to-many, and many-to-many connections, which establish the links between tables for efficient data retrieval and report generation with values from different tables. You can modify these relationships as per your analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iZAWDV97hB_RppmZk-oVjQ.png" /></figure><p><strong>Title: Different Charts</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/36/1*1iWr2LXNjBthphjvdcButw.png" /><figcaption>Import Visualizations by clicking on this symbol</figcaption></figure><p>You can create different charts that can be imported for representing different data types. For instance, stocks are better viewed on daily basis by using Candlestick charts imported from ‘Power BI Visuals’ marketplace.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4o1RQ4goE5vR2h-YJpwGZA.png" /></figure><p>Another example of a different chart is “Clustered Column Chart” wherein I am showcasing different Job Levels held by Females and Males in this company.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vi4vljaQgM905yt-s6RLAw.png" /></figure><p><strong>Title: Formats and Visuals along with Company standards</strong></p><p>Company standards encompass guidelines for fonts, font sizes, and colors that highlight crucial aspects of the company’s identity. Employing a consistent color palette enables employees to generate uniform reports, promoting a sense of integrity across the organization visible to clients.</p><p><em>Always check with your supervisors for these vital details!</em></p><p><strong>Title: Dashboards &amp; KPIs</strong></p><p>From a company’s perspective, the distinction between a dashboard and a report lies in their presentation and interactivity. Dashboards are overview reports that focus on specific KPIs (Key Performance Indicators) monitored within a project. They provide visualizations without interactive features like “<strong>slicers</strong>” or “<strong>filters</strong>”.</p><p>On the other hand, reports are dynamic charts that allow users to manipulate data, enabling a deeper understanding of the information presented.</p><p><strong>Title: Themes</strong></p><p>These are easy to use color palettes that make the selection of what combinations to use together for making the chart look more professional.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XbIWIKrZ2Wdaa48czlzgPA.png" /></figure><p>“Go to View” and then click on “Themes” to checkout various combinations that make the charts looks more sophisticated and aligned.</p><p>Look at the difference it made immediately to my dashboard! I have the perfect shades of Blue, Green and Grey that makes it look neat, systematic and readable.</p><p><strong>Title: Using Filters for Your Power BI Reports</strong></p><p>They are your saviors when you don’t want certain data to be not included in your reports. <em>I have highlighted filters in yellow in the image below.</em></p><p>For instance, this report represents the data for female employees.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VaLYM0XFTjmKRvNiaLQs9g.png" /></figure><p>The applied filters focus on female employees across various job levels, providing insights into their environment satisfaction and job involvement levels. Additionally, the data allows us to identify the representation of female leaders within the company.</p><p><strong>Title: Slicers &amp; Connecting them to different Charts</strong></p><p>Diverse slicers simplify the portrayal of data specific to a particular chart. For instance, you can observe the Median Hourly Rate (in Dollars) based on Gender. This eliminates the necessity of manually filtering Gender data, as these filters seamlessly consolidate essential details within a single report.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SSQDBfp1nvkDUSP4S4zIVw.png" /></figure><p><em>I’ve employed distinct colors to emphasize various slicer types. I advise against utilizing such colors in your reports unless they convey a formal appearance.</em></p><p>Various slicer options, including single select, multi-select, and various types like dropdowns, vertical lists, and tiles, contribute to the dynamic nature of reports. Such functionalities are not readily available in Python libraries or Jupyter notebooks. Fostering creativity while crafting easily comprehensible reports is crucial in this context.</p><p><strong>Title: Wallpaper &amp; Canvas Settings</strong></p><p>Enlarge the dimensions of your wallpaper by accessing “canvas settings” as depicted in the example below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oHbZ04htzsRihT1BpjgeAw.png" /><figcaption>Canvas Settings in Power BI Report</figcaption></figure><p>You can simply click outside your charts, and you’ll be directed to “Canvas Settings,” accessible within the “Format Your Report Page” menu. To modify background color of this report, navigate to the “Wallpaper” option.</p><p><strong>Title: Percentage calculations and showing them in Gauge chart</strong></p><p>Calculating percentage is easy if you know the math behind it.</p><p>For instance,</p><blockquote>Male Training Time Percentage = (Total Male Training Time / Total Training Time) * 100</blockquote><blockquote>Female Training Time Percentage = (Total Female Training Time / Total Training Time) * 100</blockquote><p>After this calculation, we need DAX formulas,</p><blockquote>Male Training Time = CALCULATE(SUM(YourTableName[TrainingTime]),YourTableName[Gender] = “Male”)</blockquote><blockquote>Total Training Time = SUM(YourTableName[TrainingTime])</blockquote><blockquote>Male Training Time Percentage = DIVIDE([Male Training Time], [Total Training Time]) * 100</blockquote><p>This can now be added to Power BI Report wherein I prefer a Gauge Chart that shows Achieved and Target percentage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*RdqBX3-qPJbqFNqBFEwWWw.png" /><figcaption>Gauge Chart with Max, Target &amp; Colors</figcaption></figure><p><strong>Title: Fiscal Year grouping</strong></p><p>At some point, you might encounter the need to organize your data by your company’s Fiscal Year. Although this process might seem extensive, it’s actually quite straightforward.</p><p>Navigate to the “Transform Data” section and choose the desired table where you intend to introduce the new column. Once there, click on “Add Column” and choose “Conditional Column”.</p><p>You’ll notice the conditions I’ve implemented for the “StartDate” of each employee, ensuring that the dates align with the targeted FY group.</p><p><strong><em>Condition 1: </em></strong>The StartDate should precede April 1, 2023, designating it as part of the Previous Fiscal Year.</p><p><strong><em>Condition 2:</em></strong> The StartDate should be on or after April 1, 2023, marking it as part of the Current Fiscal Year.</p><p><em>This inventive approach sets itself apart, offering a distinctive solution that you won’t encounter elsewhere. I have saved </em><strong><em>the best</em></strong><em> for the end.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lsT_HdbVKL1WEeXsjH-9Dw.png" /></figure><p>Furthermore, you have the flexibility to adapt this technique and generate distinct columns for FY22, FY23, and subsequent fiscal years. You can use grouping, filtering, slicing options on this technique. This approach greatly simplifies calculations, particularly when extracting percentages. This is how I have used in my projects and got a shoutout for excellent problem-solving skills.</p><p>Should any doubts or queries arise, please don’t hesitate to reach out to me via <a href="https://varshahindupur09.github.io/"><em>m</em>y <em>webpage</em></a><em> </em>. I’m more than willing to provide assistance and support.</p><p>The tutorial comes to an end with this information. This compilation equips you comprehensively for an interview focused on Power BI. Skip the textual content and dive into hands-on practice, as theoretical queries about constructing visual reports are less likely to be asked in an interview. Instead, interviewers will inquire about the complex tasks you tackled to enhance the analytical potential of your Power BI reports.</p><p>These are just enough to make you stand out of the crowd!</p><p>Have fun learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbec7652d652" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>