Angel Abundez's Blog

Data Analytics, Architecture, and Strategy… and other things

  • How Cloud Architects Empower IT Teams

    In today’s rapidly evolving technological landscape, cloud architects play a crucial role by transforming how their IT teams work. Beyond designing robust cloud infrastructures, they empower teams and help drive innovation. They help skill development, introduce cutting-edge functionalities, and foster a culture of experimentation. Cloud architects integrate modern architecture patterns. They leverage emerging technologies. As a result, they not only streamline processes but also tailor solutions that tackle specific business challenges.

    Below are some characteristics of the multifaceted role of cloud architects. These characteristics highlight how they enable teams to thrive in increasingly complex environments.

    1. Facilitate Skill Development

    • Training and Mentorship: They offer training sessions and workshops. They provide mentoring to help IT teams acquire new cloud skills. These activities promote best practices.
    • Knowledge Sharing: By promoting a culture of learning, they guarantee teams stay updated on cloud technologies and methodologies.

    2. Introduce New Functionality

    • Implementing New Tools and Services: They leverage cloud-native services. This enables teams to access advanced functionalities like machine learning, big data analytics, and serverless computing.
    • Integrating Modern Architectures: They introduce modern architectural patterns. Examples include microservices and event-driven architectures. These patterns enhance the flexibility and efficiency of IT solutions.

    3. Encourage Innovation

    • Fostering a Culture of Experimentation: They encourage teams to explore new ideas and solutions. Teams can innovate without the fear of failure. This approach can lead to innovative solutions to business challenges.
    • Leveraging Emerging Technologies: Good cloud architects stay abreast of the latest trends. They keep up with the latest technologies. Architects guide their teams in exploring how these trends and technologies can be applied to current business problems.

    4. Streamline Processes

    • Automation and CI/CD: They promote automation and continuous integration/continuous deployment (CI/CD) practices. This helps teams deliver software faster and more reliably.
    • DevOps Practices: Integrating DevOps principles enhances collaboration between development and operations, leading to more efficient workflows.

    5. Problem Solve and Solution Design

    • Tailoring Solutions: They work with IT teams to design custom solutions. These solutions tackle specific business challenges. This process ensures that technology aligns with organizational goals.
    • Optimizing Existing Systems: They analyze current systems and processes, identifying opportunities for improvement through cloud solutions.

    Cloud architects enable IT teams with new functionalities. They foster a culture of learning and innovation. This helps organizations become more agile, responsive, and competitive in the market.

  • Top Skills Every Cloud Architect Needs

    Being a good cloud architect involves a blend of technical skills, strategic thinking, and strong communication abilities. Cloud architects design, implement, and manage cloud infrastructure solutions that meet business needs. Here’s what defines a good cloud architect:

    1. Deep Technical Knowledge

    • Cloud Platforms: Proficiency with one or more cloud providers (e.g., AWS, Azure, Google Cloud) is essential. A good cloud architect understands the services offered by these platforms, as well as their strengths and limitations.
    • Networking & Security: Knowledge of networking principles, including VPCs, subnets, VPNs, firewalls, and load balancers, is crucial. A good architect ensures that cloud solutions are secure, compliant, and resilient.
    • Infrastructure as Code (IaC): Familiarity with IaC tools like Terraform, CloudFormation, or Ansible enables cloud architects to automate the provisioning and management of resources.
    • Containerization & Orchestration: Understanding technologies like Docker and Kubernetes is often necessary, especially when dealing with microservices architectures.
    • DevOps & CI/CD: Integrating with DevOps practices ensures efficient deployment and management of cloud services.

    2. Strategic Planning & Cost Management

    • Design for Scalability: A good cloud architect designs solutions that can scale based on demand while minimizing costs.
    • Cost Optimization: Cloud services can become costly, so understanding pricing models and designing cost-efficient solutions is essential. This includes using reserved instances, right-sizing, and managing idle resources.
    • Vendor Management: Sometimes, cloud architects work with multiple providers. Being able to choose and manage vendors to get the best value and reliability is an asset.

    3. Problem-Solving & Innovation

    • Problem-Solving Mindset: Cloud environments can be complex and ever-changing. A good cloud architect can diagnose issues quickly and adapt to unforeseen challenges.
    • Innovation & Experimentation: With cloud technology evolving rapidly, staying up-to-date and experimenting with new tools and services is critical.

    4. Understanding Business Requirements

    • Business Acumen: Aligning technical solutions with business objectives is key. A good architect understands how cloud solutions impact business processes, goals, and revenue.
    • Stakeholder Communication: Cloud architects often interact with non-technical stakeholders. Explaining technical concepts in a way that’s easy to understand is essential for gaining support and ensuring alignment.

    5. Focus on Security & Compliance

    • Data Protection & Compliance: Ensuring data privacy and adhering to industry regulations (like GDPR, HIPAA, etc.) are fundamental responsibilities.
    • Disaster Recovery & High Availability: Designing architectures that can handle failures gracefully is crucial. Good architects plan for backups, disaster recovery, and failover strategies.

    6. Continuous Learning & Adaptability

    • Stay Current with Trends: The cloud space evolves quickly, so continuous learning and adapting to new trends and technologies is a core part of being a good cloud architect.
    • Certifications & Training: Earning certifications from cloud providers (like AWS Certified Solutions Architect, Google Cloud Professional Architect, etc.) can deepen expertise and demonstrate proficiency.

    Overall, a good cloud architect bridges the gap between business needs and technical capabilities, designing scalable, efficient, and secure cloud solutions that drive organizational success.

  • Tracking Usage in Power BI

    Users of Power BI in Office 365 will often ask if there is a way to see how often people view Power BI reports in the Power BI Service. While the answer is “Yes”, you have to know where to look and what permissions you need. Microsoft provides licensed users of Power BI something called Usage Reporting. This feature has recently been revamped which is why I’m writing this. Their first version and latest version are available for workspace administrators and collaborators to enable and start using right away.

    Power BI Usage Reporting got its face lift back in January 2020 and since then, other areas of the Power BI Service have received updates as well. While it’s great to see Microsoft innovating the user experience with Power BI, it can be challenging to keep up with all the changes. Let me explain where to find Power BI Usage Reports.

    Turn on Usage Reporting

    First, we need to enable the collection of Usage data in a Power BI workspace you either own or are contributing to. This requires 1) a Power BI workspace, preferably a v2 workspace and 2) either Contributor role or higher access to this workspace. Let’s assume you have this covered and have published a report or two.

    To open usage reporting, simply view the usage of a particular report. Any report will do. Hover over a report in your workspace, go to the quick actions menu, and pick View usage metrics report.

    Or, if you’ve opened a report in your workspace, click on the quick actions menu from the ribbon above the report and select Usage metrics.

    When opening a usage report for the first time in a workspace, it enables a hidden dataset in your workspace called the Report Usage Metrics Model. It is set to refresh daily and takes 24 hours to populate with statistics for a particular day. If you see data in the usage report prior to today’s date, you or someone else in your workspace has viewed the Usage metrics already.

    Usage for Dashboards

    Understand that usage reports for Power BI Dashboards and Power BI Reports are different. So if you’re using both, you’ll need to check both. There’s currently no way to mash the two statistics unless you do something custom with the Activity log. If you guys want to see that, leave me a comment and I’ll write about it in a separate post.

    Dashboard usage is triggered identical to Report usage. Simply navigate to your Dashboard, hover the Dashboard you’d like to see usage on, then go to the quick actions menu and select View usage metrics report. Similar menu item exists if you’re already in a Dashboard.

    This creates a different hidden dataset in your workspace called Dashboard Usage Metrics Model. Same refresh frequency applies as the Report Usage Metrics Model.

    Save a copy of Usage Reports

    While Usage Reports are designed to see usage one report or one dashboard at a time, they can also be customized to view all reports in a workspace. You simply save a copy of this report and remove the filter for the Report GUID or Dashboard GUID in the Filter pane. You can add a slicer for the Report Name to view summary statistics for individual reports or across the entire workspace.

    To start the process, bring up a Usage metrics report, go to the quick actions menu in the ribbon, and select Save a copy.

    You’ll immediately see the Filter Pane contain the filter for Report GUID (or Dashboard GUID for Dashboard Usage) which you can remove.

    To add slicers for Report Name, User Name, or any other field in the model, simply edit the copy of this report in the web and modify how you see fit. I’ll blog about this in more detail in another post.

    More usage tips later

    While these reports work great as a starting point, there are some things left to be desired. Some of these I’ve addressed on my own with custom reports which I’ll blog about later. Some are impossible without doing some custom work with the Activity Log. But hopefully, this gives some of you a head start to make some informed decisions about your content.

    Thanks for reading!

  • Convert Power BI datasets to Analysis Services

    Converting your Power BI data model to Analysis Services can resolve some of your dataset challenges. Got a large data model (> 1GB)? Or need refreshes more than 8x per day? Using Analysis Services to host your data model can help! In this post I’ll show you a quick way to evaluate what things would look like if you moved your model to Azure Analysis Services (AAS), the cloud version of Analysis Services. If you have Analysis Services (AS) on-prem instead, the method described in this post should still work. Contemplating the licensing of a dedicated Analysis Services server? Read here for the latest on SQL Server pricing.

    So first, you’ll need an Azure Subscription, an AAS server, and a tool called Tabular Editor. If you have Analysis Services on-premises, you won’t need an Azure subscription or AAS.

    Next, create a Power BI template from your Power BI file (or PBIX). This is required because Tabular Editor can only open Power BI template files at the moment. That will change once Tabular Editor is integrated into the Desktop tool, but for now, you’ll need a PBIT file (not a PBIX) to open the model in Tabular Editor and then deploy it to either AAS or AS. Also important, make sure to disable auto-time intelligence before you do this.

    So once you have Tabular Editor and the PBIT, you’re all set. Let’s deploy this to AAS (or AS if that’s what you have):

    1. Open the PBIT file in Tabular Editor, File > Open > From File…
    2. In the left explorer pane, expand the Data Sources folder and check that each data source has the appropriate credentials set.undefined
    3. Go to Model > Deploy
      1. Enter Server as asazure://azure_region.asazure.windows.net/aas_serverename (or your server name/ instance name if it’s AS on-premises)
      2. Change authentication type to “Username and Password” and enter in your authorized AAD or AD account to publish this new AAS model.
      3. Click Next
      4. Uncheck Deploy Roles
      5. Click Next
      6. Deploy

    Model deployed! Now you need to process your new database, or “tabular model”. This populates your model with data as it is currently empty. This is the same as refreshing your Power BI dataset.

    If you’re using AAS, I suggest using Powershell. This will help with scheduling refreshes later, or in Analysis Services terminology, processing the tabular model.

    For those with Analysis Services on-premises, read here.

    Process the Tabular Model

    Picking up tips from Christian Wade’s blog on how to process AAS with Powershell, here’s the process.

    In elevated Powershell console, install the following modules:

    Install-Module -Name Az.AnalysisServices

    Install-Module -Name SqlServer

    Then executed the following command to login to Azure:

    Login-AzureAsAccount

    A login screen will pop up asking you to login. Use the same Azure Active Directory account you used previously to deploy the model.

    Invoke-ProcessCube -Server "asazure://region.asazure.windows.net/server" -Name "myCube" -Database "Db1" -ProcessType "ProcessDefault"

    Alternatively, you can process a particular table of the model. Analysis Services has all sorts of ways you can refresh data in your model.

    Invoke-ProcessTable -Server "asazure://region.asazure.windows.net/server" -TableName "your_table" -Database "your_database" -RefreshType Full

    Follow up

    If you like what you see here and need to learn more, leave a comment below so I can address your questions. I know I did not address cost considerations or scheduling model refreshes in Azure. If you’d like to see that, just leave me a note and I will work on that.

    I wrote this post mostly because I was so impressed with how easy it was to work with data models in Tabular Editor. I’ve used Tabular Editor in the past and really liked it for developing AS Tabular models. I’m happy to see that it works just as easy with Power BI files and AAS.

    Thanks for reading!

  • Here are some helpful tips in administering and governing your Power BI tenant. I start with all the areas you need to be aware of in the Office 365 and Power Platform admin pages. This can be a cumbersome task of logging into muliple portals and clicking on several links to collect all the information. However, I try to show a beter way by taking inventory of everything you have in your tenant. It can not only be eye opening, but also actionable. Find artifacts that aren’t being used, potential cost savings, unauthorized gateways, or unsecure data that needs attention.

  • I revisited my 2014 presentation on automating Power BI reports because Microsoft has come out with so much since then. The Power Platform, Azure Services like ML and Azure Synapse, Teams. It’s crazy! This year alone (2019), Microsoft has released tons of updates that my slides from February are now old. Microsoft Flow is now Power Automate, for example. I’ll put this one on the shelf for 2020 but I suspect that I’ll be reviving it again in 2021.

  • Prior Period Formula without a Date Table

    To calculate a prior period formula in Power BI, you don’t need a Date table. Lots of consultants will suggest to build one as a best practice, but if you want to save yourself some model and visual rework, there’s other options.

    In the example formulas that follow, I imported a sales.csv file I got from Microsoft’s Dashboard in a Day training which looks like the featured image of this post. This is provided so you can follow along with my syntax.

    The Date Table Method

    Creating a Date table is not hard. A basic one could be stood up in Power BI Desktop by going to the Modeling tab, hitting the New Table button and writing the formula: Date = CALENDAR ( "1/1/2011", "1/1/2019" ).

    Create a relationship from your Sales[Date] column to your Date[Date] and add a measure that reads Prior Month = CALCULATE ( SUM ( 'Sales'[Revenue] ), PREVOUSMONTH ( 'Date'[Date] ) ).

    //Date Table
    Date = CALENDAR (DATE(2012,1,1), DATE(2018,12,31))
    Date = CALENDAR ("1/1/2012", 12/31/2018")
    //Time Intelligence function
    PY Sales = CALCULATE ( SUM ( Sales[Revenue] ), SAMEPERIODLASTYEAR( 'Date'[Date] ) )
    PM Sales = CALCULATE ( SUM ( Sales[Revenue] ), PREVIOUSMONTH( 'Date'[Date] ) )
    //Ratios
    % Growth = DIVIDE(SUM(Sales[Revenue])-[PY Sales],[PY Sales])

    However, what this textbook approach doesn’t consider is the amount of rework on the visuals you may have already dialed in on your report pages and dashboard tiles. Meaning, if you’ve used Sales[Date] all over your trends and slicers and tables, will this change mess you up? Yes it will. Don’t believe me? Try it. For example, you’ll see column charts turn into a heart scan.

    So what other options are there? Let’s take a look.

    Use the built-in Date table

    Our Sales[Date] column has a Date table built-in, you just can’t see it. You can rewrite the formula above using this built-in date table instead:

    Prior Month Sales = CALCULATE ( SUM( Sales[Revenue] ), PREVIOUSMONTH( 'Date'[Date] ) )
    // Quick measure uses DATEADD function instead
    Prior Month Sales = CALCULATE ( SUM( Sales[Revenue] ), DATEADD( 'Date'[Date], -1, MONTH ) )

    Check out an article by SQLBI to learn more about using automatic time intelligence and the Auto Date/Time setting in your report it depends on.

    No Date Table Method

    Here’s a formula that does the same thing as the above:

    Revenue PM =
    var prior_month_start_date = EOMONTH( MIN ( Sales[Date] ), -2 ) + 1
    var prior_month_end_date = EOMONTH( MIN ( Sales[Date] ), -1 ) + 1
    RETURN
    CALCULATE(
    SUM ( Sales[Revenue] ),
    FILTER (
    ALLSELECTED ( Sales ),
    Sales[Date] >= prior_month_start_date && Sales[Date] < prior_month_end_date
    )
    )

    It ain’t pretty, but necessary since our Sales table does not have a continous date column.

    The two first lines are variable statements for the beginning and ending of the prior month date range. You can change the names if you have better names that make sense to you.

    Then in the CALCULATE statement, we do the same SUM as before, but instead of PREVIOUSMONTH which requires a Date table, we FILTER the Sales table using the ALLSELECTED function to ignore the filter context of our trend, respect all other filters on our page, and then narrow it down where the [Date] column is within that range.

    Summary

    These alternate formulas above may work for you, they may not. For instance, using the built-in table won’t work for weeks; only years, quarters, and months. The “No Date Table” method won’t work if you add attributes besides Month in your visual. Bottom line, there is good reason why adding a Date table to your model is a best practice.

    Let me know in the comments if this doesn’t make sense and I’ll revise the article. I mainly just want to debunk the myth that you need a separate Date table in all cases. You don’t. Yes, its a best practice if you have the time to implement, but when you don’t, there’s a plan B and C.

    Thanks for reading!

    Update 11/22/2019: Thanks to my buddy Nathan Peterson for pointing out that FILTERing the Sales table using the ALL function removes all other filters applied, which is not a desired outcome.

    Update 11/24/2019: After stumbling on SQLBI’s article on automatic time intelligence, I tried the Month-over-month Quick Measure in Power BI and learned that you can access the internal Date tables in Power BI. You just have to use the right syntax.

  • Power BI Gateway Version Alert

    Power BI Gateway software is updated monthly. There is no auto-update available, and you probably wouldn’t want to auto-update anyway. Updates to Gateways are like updates to Database software: plan accordingly and test beforehand. You don’t want to break any production reports.

    Fortunately, Microsoft’s released a new DataGateway Powershell module that us gateway administrators can use to alert us that our Gateways could be upgraded and we should have a look. The module can do a lot more, but we’ll just focus on the Version status here.

    Sample results from Get-DataGatewayClusterStatus cmdlet

    What we want is to collect the Gateway Upgrade State for our Gateway Cluster. Assuming you are at least the Gateway Administrator for your Gateway, here are the steps:

    1. Install Powershell 6 and launch Powershell 6.
    2. Install the DataGateway module from the Powershell gallery by running Install-Module -Name DataGateway.
    3. Run Login-DataGateway and login in the browser window that pops up with your account.
    4. Run Get-DataGatewayCluster and make note of your gateway Id
    5. Run Get-DataGatewayClusterStatus -GatewayClusterId <Your Cluster Id Here>

    In this process, you’ll see there’s a lot of information you can see concerning your gateway. If you’re a Power BI or Office 365 Global Administrator, you’ll see a lot more gateways too. This is great!

    When I have time, I’ll write another post on how to collect this information across all the gateways in your tenant. Also, I should note that this information is also available in the Manage gateway admin page in the Power BI Service. Click on your gateway(s) list and you’ll find the notification that your gateway server(s) should probably be upgraded.

    Thanks for reading.

  • Takes Notes and Scans with Evernote

    I am a big fan of Evernote. Since 2011, I’ve used Evernote to take the place of my paper notebooks. Its turned into my database of ideas, conversations, random thoughts, important documents, and daily planning. I also use it as a scanner and digital reader.

    Instead of listing out features, here’s some ways I use the app on my phone and my laptop with some helpful links to get you started if your curious to try it out:

    1. Scan receipts – Whether its tracking business expenses or tracking my latest purchase at the Bass Outlet in Vacaville, scanning is super simple on my phone with Evernote. It auto-detects the receipt and cleans it up so good, it looks like I took it on a flatbed scanner. With Scannable, its even simpler and faster. Goodbye 3-in-1 printer!
    2. Interview and Meeting notes – Whenever I interview job candidates or prospective clients, I write what was said and record my thoughts about the conversation in Evernote. I can type >80 WPM thanks to my freshman high school typing class, so it is much easier to play scribe in Evernote than on paper.
    3. Capture screenshots during online meetings or take pictures of diagrams during an onsite meeting. I sometimes annotate these during the meeting or when I recap the meeting afterward to highlight and explain why the image is important. Evernote bought a company called Skitch way back which was integrated with Evernote to allow easy annotating on images on phones, tablets, or laptops.
    4. Scan business cards and find folks on LinkedIn. Evernote does this so effortlessly, that sometimes I just do it without even thinking. Its easy and fun too. I paid one of my girls once $5 to scan about 100 business cards with Evernote and she was done in less than half an hour! I was so relieved to be able to throw away the stack of growing business cards away and handle it all through Evernote from that day forward.
    5. To-Do Lists – I don’t need much for a To-Do list, so a checklist is good enough for me. I make personal and professional To-Do lists in Evernote all the time. Helps me stay on track, especially when I’m on multiple projects at home and at work.

    On top of all these use cases, the beauty of Evernote is I can do this on my phone or laptop and have it sync across the two in seconds. I also share notes via email constantly and have an “Abundez Family” notebook which I share with my wife Jessica on important topics or documents we’re working on together. I still carry a notepad around but I’ve had the same one in my laptop bag for a couple of years. Doubt I’ll go through it this year.

    Try it out and let me know what you think in the comments below! Or if you’re already an Evernote user, how do you use it?

  • My Top 5 Apps of All Time

    Over the holidays, my oldest daughter looked at my iPhone and laughed “Papa, how can you find anything? Can I organize it for you?” I immediately said yes. For those that don’t know Lisette, she’s the best organizer! When I got my phone back, I loved it. She even made room for more apps. Hmm, I thought, but I don’t need more apps. What I could use is quicker access to the apps I use all the time. Rather than have these apps in folders on my home screen, I put them in their own space for easy one-touch access. “There”, I said, showing my daughter, which she agreed made sense. Made me feel great, since it’s not everyday I gets to feel cool with my 14-year old.

    So here are some of those apps I positioned on my home screen on their own. My top 5 apps of all time:

    1. Dropbox – back up files, photos, videos from any device
    2. Evernote – write notes anywhere, anytime, from any device
    3. Google Maps – find locations, get directions, phone numbers, mark them down for alter, from any device
    4. Spotify – listen to anything, anywhere, from any device. Also has the best playlists on the planet.
    5. Amazon Prime Video – watch anything, anywhere, from any device

    Notice the bold print on this list. These are more than just phone apps. These services work across different devices; cross-platform, as they say in the tech world. That’s important to me and in some cases, our entire family.

    Even though our family uses Apple devices a lot, we’ve got others we use just as often (Fire HD tablets, Windows laptops, Fire TV, Roku). All these apps work seamlessly across all our devices. All are cloud-based, so you never have to worry about losing data. You can store content locally on the device to access it offline. You can share easily (and securely) with others who own different platforms (Android, Chrome OS, etc).

    Social media apps and apps only available in the Apple App Store didn’t make this list. Why? Well, because not everyone uses social media or owns an Apple device. This list is about apps that everyone can use.

    I’ll follow up with some review of these apps to explain why they are mission-critical for me and the family. In the meantime, do you have a useful app? Would love to hear about it. Please leave a comment so I can test it out.