<?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 Felipe Oliveira de Freitas Silva on Medium]]></title>
        <description><![CDATA[Stories by Felipe Oliveira de Freitas Silva on Medium]]></description>
        <link>https://medium.com/@felipefreitas-perspective?source=rss-2307b88f21b3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PVbZH05AyD-Rv8fs0uRpvA.png</url>
            <title>Stories by Felipe Oliveira de Freitas Silva on Medium</title>
            <link>https://medium.com/@felipefreitas-perspective?source=rss-2307b88f21b3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 07:03:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@felipefreitas-perspective/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[Power BI Best Practices for 2026: DAX Is Powerful, But Not a Shortcut]]></title>
            <link>https://felipefreitas-perspective.medium.com/power-bi-best-practices-for-2026-dax-is-powerful-but-not-a-shortcut-8e228a467ca8?source=rss-2307b88f21b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e228a467ca8</guid>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[data-modeling]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[best-practices]]></category>
            <dc:creator><![CDATA[Felipe Oliveira de Freitas Silva]]></dc:creator>
            <pubDate>Mon, 01 Jun 2026 13:31:00 GMT</pubDate>
            <atom:updated>2026-06-01T13:31:00.724Z</atom:updated>
            <content:encoded><![CDATA[<h4>Use DAX to express business logic clearly, not to compensate for every modeling, preparation, or relationship problem in your report.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5xX79FBTFeI9lDx8R16PTg.png" /></figure><h4>When a Correct Formula Becomes a Maintenance Problem</h4><p>A DAX formula can be correct and still become a problem later.</p><p>That is one of the tricky parts of Power BI.</p><p>Sometimes the measure works. The visual shows the expected number. The stakeholder is happy. The dashboard gets published.</p><p>But months later, someone needs to understand why that number behaves differently from another page, why a filter does not apply, or why a small model change broke three measures at once.</p><p>That is when DAX stops being just a formula language and becomes a maintenance decision.</p><p>DAX is powerful. But it should not become the place where every modeling, preparation, or relationship problem gets hidden.</p><h4>1. DAX Should Explain Logic, Not Hide Problems</h4><p>DAX should help express business logic clearly.</p><p>It should answer questions like: What is revenue? What counts as an active customer? How do we calculate margin? What should be included or excluded from this KPI?</p><p>The problem starts when DAX becomes the place where every unresolved issue goes.</p><p>A relationship is unclear, so a measure works around it. A transformation was not done upstream, so a formula compensates for it. A visual needs a special exception, so a new measure is created only for that chart.</p><p>Sometimes this is necessary.</p><p>But if every problem becomes a DAX workaround, the model gets harder to understand.</p><p>Good DAX should make the logic easier to follow, not harder to find.</p><h4>2. Measures Deserve a Home</h4><p>Measures can multiply quickly in a Power BI model.</p><p>At first, there are only a few: revenue, cost, margin, quantity, maybe a year-to-date calculation.</p><p>Then come variations by segment, target, status, period, exception, and stakeholder request.</p><p>Before long, measures are scattered across fact tables, dimension tables, and places where they technically work but do not really belong.</p><p>That makes the model harder to read.</p><p>A dedicated measures table, often named something like `_measures`, can help keep DAX logic in one place. Display folders can also make measures easier to browse by topic, such as sales, finance, operations, time intelligence, or KPIs.</p><p>This is not just about being organized.</p><p>It is about making the model easier to maintain, review, and hand over to someone else.</p><h4>3. Use Variables to Make Logic Easier to Read</h4><p>One of the simplest ways to make DAX easier to maintain is to use variables.</p><p>A long formula can work, but that does not mean it is easy to understand.</p><p>Variables let you break the logic into smaller steps. Instead of reading one large expression from top to bottom and guessing what each part is doing, you can name intermediate results and make the calculation easier to follow.</p><p>This also makes debugging easier.</p><p>If a measure is returning the wrong number, variables help you isolate the part of the logic that needs attention.</p><p>Microsoft’s DAX guidance also highlights that variables can improve readability, reliability, and performance in many scenarios.</p><p>For me, that is the point: variables are not only a syntax preference. They are a way to write DAX for the next person who needs to understand it.</p><p><em>Source: </em><a href="https://learn.microsoft.com/en-us/dax/best-practices/dax-variables"><em>Use variables to improve your DAX formulas</em></a></p><h4>4. Be Careful With Visual-Level Workarounds</h4><p>DAX can make one visual behave exactly the way you want.</p><p>That is useful, and sometimes necessary.</p><p>Real projects have deadlines, urgent requests, and rapid-fire solutions that need to happen before the perfect model exists.</p><p>The problem starts when temporary logic becomes permanent without anyone noticing.</p><p>If every chart has its own special measure, filter exception, or hidden rule, the report can slowly develop multiple versions of the truth.</p><p>This also applies to DAX used for conditional formatting, dynamic labels, or visual-specific logic.</p><p>The mindset should be simple: solve the urgent need now, but know whether it needs a cleaner short-term or long-term fix.</p><p>Otherwise, the report becomes hard to maintain and almost impossible to trace.</p><h4>5. Choose the Right Relationship Logic</h4><p>USERELATIONSHIP and TREATAS can both help avoid unnecessary model changes, but they solve different problems.</p><p>Use USERELATIONSHIP when the relationship already exists in the model but is inactive. A common example is a fact table with multiple date columns, such as Order Date, Ship Date, and Delivery Date. One relationship is active, while another is only needed for a specific measure.</p><p>Use TREATAS when you do not want or need a physical relationship, but you still need to apply values from one table as filters to another table.</p><p>Use a physical relationship when the relationship represents a stable business rule, will be reused across reports or measures, and makes the model easier to understand.</p><p>The best practice is not to memorize which function is “better.”</p><p>The best practice is to ask what the business logic needs.</p><p>USERELATIONSHIP activates an existing path. TREATAS creates a specific virtual filter. A physical relationship defines the model structure.</p><p>None of them should be used to hide poor modeling.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WqRKbQJCCxYAectrygXR4g.png" /></figure><p><em>Sources: </em><a href="https://learn.microsoft.com/en-my/dax/userelationship-function-dax"><em>USERELATIONSHIP functio</em>n</a>; <a href="https://learn.microsoft.com/en-us/dax/treatas-function-dax"><em>TREATAS function</em></a>; <a href="https://learn.microsoft.com/en-us/power-bi/guidance/relationships-active-inactive"><em>Active vs inactive relationship guidance</em></a></p><h4>6. Move Logic Upstream When DAX Is Doing Too Much</h4><p>Sometimes the problem is not the DAX formula.</p><p>Sometimes the formula is trying to do work that should have happened earlier.</p><p>If DAX is cleaning data, fixing structure, handling inconsistent categories, or compensating for missing transformations, it may be a sign that the logic belongs upstream.</p><p>That could mean Power Query, dataflows, SQL, the warehouse, or even the source system.</p><p>This is also a performance issue.</p><p>Heavy DAX calculations can make reports slower, especially when they are solving problems that should have been handled before the data reached the model or report.</p><p>DAX is great for business calculations. It is not always the best place to repair data quality, reshape the model, or compensate for missing preparation.</p><p>A good question to ask is: am I writing a measure, or am I rebuilding the data pipeline inside a formula?</p><p>If the answer is the second one, the model probably needs a cleaner upstream solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QnDjzNGcrZGwU8lsjsA_ZA.png" /></figure><p><em>Source: </em><a href="https://learn.microsoft.com/en-us/power-bi/guidance/import-modeling-data-reduction"><em>Data reduction techniques</em></a><em>; </em><a href="https://learn.microsoft.com/en-us/power-query/best-practices"><em>Best practices when working with Power Query</em></a></p><h4>Final Thought: Write DAX for the Person Who Maintains It Next</h4><p>DAX is one of the most powerful parts of Power BI.</p><p>But power is not the same as clarity.</p><p>A formula can be correct today and still become painful to maintain later.</p><p>That is why good DAX is not only about getting the number right. It is also about making the logic understandable, reusable, and traceable.</p><p>Use DAX to express business logic clearly.</p><p>Use variables to make formulas easier to read.</p><p>Use USERELATIONSHIP, TREATAS, and physical relationships with intention.</p><p>And when DAX starts doing too much, consider whether the logic belongs upstream.</p><p>The goal is not to write the cleverest formula in the model.</p><p>The goal is to write DAX that someone can trust, debug, and maintain months later.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e228a467ca8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Power BI Best Practices for 2026: Workspace and Refresh Strategy]]></title>
            <link>https://felipefreitas-perspective.medium.com/power-bi-best-practices-for-2026-workspace-and-refresh-strategy-0d108ce9c34c?source=rss-2307b88f21b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/0d108ce9c34c</guid>
            <category><![CDATA[data-governance]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[Felipe Oliveira de Freitas Silva]]></dc:creator>
            <pubDate>Thu, 28 May 2026 22:46:00 GMT</pubDate>
            <atom:updated>2026-05-28T22:46:00.486Z</atom:updated>
            <content:encoded><![CDATA[<h4>A good Power BI report needs more than clean visuals and a strong model. It needs a workspace and refresh process people can rely on.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TgLQ2bScTslupxsAns4XbA.png" /></figure><h4>The Report Did Not Fail in Desktop</h4><p>A Power BI report can work perfectly in Desktop and still fail as a business tool after publishing.</p><p>The model is clean. The visuals load. The numbers look right.</p><p>Then the report goes to the Power BI Service.</p><p>Suddenly, refresh fails. Credentials expire. The gateway is offline. The report is published to the wrong workspace. Too many people have edit access. Or nobody knows who owns the semantic model.</p><p>That is when you realize something important: Power BI best practices do not stop at the PBIX file.</p><h4>1. Workspaces Are Part of the Architecture</h4><p>A workspace is not just a folder where reports go after publishing.</p><p>It is where reports, semantic models, dashboards, dataflows, and access rules live together. If everything is mixed in the same workspace, maintenance becomes harder fast.</p><p>I like to think about workspaces by purpose: team, project, department, environment, or business area.</p><p>The point is simple: if people cannot understand where things live, they will also struggle to understand who owns them.</p><p><em>Source: </em><a href="https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-new-workspaces"><em>Workspaces in Power BI</em></a></p><h4>2. Roles Should Match Responsibility</h4><p>Not everyone needs admin access.</p><p>Power BI workspaces have roles like Admin, Member, Contributor, and Viewer. Those roles matter because they define who can manage the workspace, publish content, update apps, edit reports, or simply view and interact.</p><p>I learned this the practical way. In some projects, I had to ask my director for access just to continue my work. I was stuck between a deadline and the fear of doing something wrong because permissions were not clearly defined from the beginning.</p><p>When access is adjusted at the last minute, the workflow becomes slower, less professional, and more risky.</p><p>Too much access creates risk. Too little access creates bottlenecks.</p><p>A good workspace setup makes ownership clear without turning every small change into a permission problem.</p><p><em>Source: </em><a href="https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-roles-new-workspaces"><em>Roles in workspaces in Power BI</em></a></p><h4>3. Scheduled Refresh Is Not a Detail</h4><p>Scheduled refresh is not a small detail.</p><p>If a report depends on imported data, refresh is the process that keeps the semantic model current. That means the schedule, credentials, gateway, source availability, and failure notifications all matter.</p><p>In a previous enterprise environment, I saw a different kind of challenge. The process was more controlled, but also more dependent on other teams.</p><p>BI could manually refresh some reports, but we could not fully own the refresh setup, configure new schedules, or move fast without permissions, RLS rules, or approvals from other areas.</p><p>That was not about bad people. It was about unclear ownership.</p><p>The business expected BI to keep dashboards current, while BI depended on other teams to fix part of the setup. When ownership is not clear, pressure comes from both sides.</p><p>This is why scheduled refresh should have clear responsibility.</p><p>A dashboard that does not refresh correctly is not just a technical issue. It becomes a trust issue.</p><p><em>Source: </em><a href="https://learn.microsoft.com/en-us/power-bi/connect-data/refresh-scheduled-refresh"><em>Configure scheduled refresh</em></a></p><h4>4. Know How Your Data Gets There</h4><p>One thing is understanding Power BI as a tool. Another thing is managing how data gets into it every day.</p><p>A refresh can fail because a file was renamed, a column changed, a folder moved, a credential expired, or a source system changed without warning.</p><p>This happens even more when the flow was built by different people or different teams over time.</p><p>The best practice here is simple: document and review your data sources.</p><p>Keep a central list of the sources used by each dataflow, semantic model, or report. It does not need to be complex. It can live in GitHub, SharePoint, Alation, a data catalog, or any shared place the team actually uses.</p><p>At minimum, track the source name, owner, location, refresh dependency, expected file format, and who to contact when something changes.</p><p>For important reports, schedule a monthly or weekly review with the teams that own the upstream files and systems.</p><p>If the data flow is not clear, every refresh failure becomes detective work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*duxDfAYamBMZSvMuJe616w.png" /></figure><p><em>Source: </em><a href="https://learn.microsoft.com/en-us/power-bi/connect-data/refresh-data"><em>Data refresh in Power BI</em></a></p><h4>5. DirectQuery Should Not Be a Bandage</h4><p>DirectQuery has valid use cases, but I do not treat it as the default choice.</p><p>When possible, I usually prefer Import mode because it gives better performance, more flexibility, and a simpler experience for most business reporting scenarios.</p><p>Microsoft describes Import mode as the most common mode for Power BI semantic models, with fast performance because queries run against in-memory data.</p><p>DirectQuery starts to make sense when the data is too large to import, even after reduction strategies, or when the report truly needs near real-time data beyond scheduled refresh limits.</p><p>So yes, if the internal refresh is becoming too heavy, too slow, or no longer practical, DirectQuery can be the right decision.</p><p>But sometimes teams choose DirectQuery because the refresh process is painful, unclear, or poorly owned.</p><p>That is the wrong reason.</p><p>Before switching to DirectQuery, I would ask: do we truly need it, or do we need to fix our data flow, ownership, gateway, credentials, and refresh setup first?</p><p>DirectQuery can solve specific technical needs. It should not be used to hide operational problems.</p><p><em>Source: </em><a href="https://learn.microsoft.com/en-us/power-bi/connect-data/service-dataset-modes-understand?view=vsts"><em>Semantic model modes in the Power BI service</em></a></p><h4>A Report Is More Than a File</h4><p>Power BI best practices do not stop when the PBIX file works.</p><p>A report also needs a reliable place to live, clear ownership, the right permissions, documented data sources, and a refresh process people can trust.</p><p>Workspace and refresh strategy may not be the most exciting part of Power BI, but they are often the difference between a report that looks good once and a report that keeps working for the business every day.</p><p>A good report is not only built.</p><p>It is maintained.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0d108ce9c34c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Power BI Best Practices for 2026: Better Modeling Foundations]]></title>
            <link>https://felipefreitas-perspective.medium.com/power-bi-best-practices-for-2026-better-modeling-foundations-889b5cb1a274?source=rss-2307b88f21b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/889b5cb1a274</guid>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[data-modeling]]></category>
            <dc:creator><![CDATA[Felipe Oliveira de Freitas Silva]]></dc:creator>
            <pubDate>Tue, 26 May 2026 00:11:30 GMT</pubDate>
            <atom:updated>2026-05-26T00:12:06.926Z</atom:updated>
            <content:encoded><![CDATA[<h4>Clean relationships, organized data preparation, and simple report design make Power BI models easier to trust, maintain, and improve over time.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eDKB65Hv9jZAWe0_w-uW0g.png" /></figure><h4>The Dashboard Looked Fine Until Someone Had To Maintain It</h4><p>You open the model view and see tables everywhere, relationship lines crossing in every direction, measures scattered across the file, and calculated columns created to solve problems that probably belonged upstream.</p><p>The report might work today.</p><p>But six months later, when someone asks why a number changed, why one visual behaves differently, or why a small change broke something else, the real cost appears.</p><p>Good Power BI work is not just about dashboards that impress. It is about building foundations that people can understand, maintain, and trust.</p><h4>1. Your Model View Is Telling You Something</h4><p>A messy relationship view is rarely just a visual problem.</p><p>It usually means the model grew reactively: one table for one request, one relationship for one visual, one workaround after another.</p><p>Microsoft’s star schema guidance is still a strong foundation: separate dimension tables for filtering and grouping from fact tables for summarization.</p><p>Your model should be easy to scan. If it takes ten minutes to understand how filters move, the report is already becoming expensive to maintain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vvf_ZV5JB95F2UpgvKYBWA.png" /></figure><p><em>Source: </em><a href="https://learn.microsoft.com/en-us/power-bi/guidance/star-schema"><em>Microsoft Power BI star schema guidance</em></a></p><h4>2. Relationships Are Powerful, But Not Free</h4><p>Adding another relationship is not always the best fix.</p><p>Sometimes it makes the model clearer. Other times, it creates hidden dependencies that make the report harder to maintain later.</p><p>This is especially true with bi-directional relationships. They can be useful in specific scenarios, but they should not be the default. Microsoft generally recommends minimizing their use because they can affect query performance and create confusing report behavior.</p><p>Before changing relationship directions or creating another relationship, ask what problem it is solving. Is it making the model easier to understand? Is it supporting a reusable business rule? Or is it only forcing one visual to work?</p><p>There are specific DAX patterns and formulas that can help in some of these cases, but I will leave those for a future post focused only on DAX.</p><p>For now, the main idea is simple: do not add model-wide complexity just to solve a local problem.</p><p><em>Source: </em><a href="https://learn.microsoft.com/en-ie/power-bi/guidance/relationships-bidirectional-filtering"><em>Bi-directional relationship guidance</em></a></p><h4>3. Simple Visuals Are Often Better</h4><p>A dashboard does not need to look complex to be valuable.</p><p>Many strong reports use simple charts, clean spacing, consistent formatting, and clear hierarchy.</p><p>For me, the order is simple: first, make the report work. Make sure the content is useful, the logic is correct, and the numbers can be trusted.</p><ol><li>Then improve the layout enough so people can read and use it.</li><li>Only after that, if there is time, polish the visual details.</li><li>Design matters, but not before the report is telling the truth.</li></ol><p>Strong content, clean structure, and reliable logic will age better than visuals built only to impress.</p><h4>4. Do Not Solve Every Data Problem Inside Power BI</h4><p>Power BI is flexible, but it should not become the place where every data problem gets fixed.</p><p>When spreadsheets, CSVs, databases, cloud files, and SharePoint lists all go directly into the report, the model can become harder to control and maintain.</p><p>If the same cleaning logic or prepared table will be reused across reports, move that work upstream when possible.</p><p>Dataflows can help create a more controlled preparation layer, so different dashboards do not keep rebuilding the same logic from scratch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EtJlnGD9JJ8kCy1uq1aHOg.png" /></figure><p><em>Source: </em><a href="https://learn.microsoft.com/en-us/power-bi/transform-model/dataflows/dataflows-best-practices"><em>Microsoft Power BI dataflows best practices</em></a></p><h4>5. Import vs DirectQuery Is a Tradeoff</h4><p>I usually prefer Import mode when the use case allows it.</p><p>Import is common and fast because queries run against in-memory data.</p><p>DirectQuery makes sense when data is too large to import, when near real-time access is required, or when scheduled refresh and the workspace setup are not being used correctly for the reporting need.</p><p>So the question is not “Which one is better?”</p><p>The better question is: “What does this report actually need, and is the Power BI environment configured to support it?”</p><p><em>Source: </em><a href="https://learn.microsoft.com/en-us/power-bi/connect-data/service-dataset-modes-understand?view=vsts"><em>Microsoft Power BI semantic model modes</em></a></p><h4>Final Thought: Build for Future Trust</h4><p>These are not the only Power BI best practices, of course.</p><p>But they are the foundation I like to get right first: a model that is clear, maintainable, and honest about the data it is showing.</p><p>In the next posts, I will go deeper into workspace setup, scheduled refresh, and some DAX patterns that help keep models clean without adding unnecessary complexity.</p><p>You can also find my related notes and projects on LinkedIn and GitHub.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=889b5cb1a274" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>