top of page

380 items found for ""

Blog Posts (162)

  • How to Implement Legends in Power BI Visuals

    How to Implement Legends in Power BI Visuals Legends play a crucial role in Power BI visuals, providing context to data and enhancing the interpretability of charts. This blog post demonstrates how to implement legends in line and clustered column charts using DAX formulas. Steps to Implement Legends 1. Create a Legend Table We start by creating a Legend Table  using the DATATABLE function to define the legend items and their associated properties, such as icons and colors. Legend Table = DATATABLE( "Attribute Name", STRING, "Legend Item 1", STRING, "Circle Icon1", STRING, "Color1", STRING, "Legend Item 2", STRING, "Circle Icon2", STRING, "Color2", STRING, "Legend Item 3", STRING, "Circle Icon3", STRING, "Color3", STRING, { {"BUDGET_LABOR_HOURS", "Budget Labor Hours", "●", "#ADD8E6", BLANK(), BLANK(), BLANK(), BLANK(), BLANK(), BLANK()}, {"BUDGET_TOTAL_LABOR_HOURS", "Budget Total Labor Hours", "●", "#00008B", BLANK(), BLANK(), BLANK(), BLANK(), BLANK(), BLANK()}, {"BUDGET_LABOR_VAR_WITH_DUV", "Budget Labor Var", "●", "#FFA500", "Budget Labor Hours", "●", "#ADD8E6", "Budget Total Labor Hours", "●", "#00008B"} } ) The Legend Table  defines: Attribute Name : A unique identifier for each attribute. Legend Items : Names, icons (e.g., ●), and colors associated with each legend item. 2. Create Dynamic Color Measures To dynamically apply colors to visuals based on the selected attribute, use the following measures: Dynamic Color1 = VAR SelectedAttribute = SELECTEDVALUE('Labour Data'[Attribute Name]) RETURN LOOKUPVALUE( 'Legend Table'[Color1], 'Legend Table'[Attribute Name], SelectedAttribute, "#FFFFFF" // Default color ) Dynamic Color2 = VAR SelectedAttribute = SELECTEDVALUE('Labour Data'[Attribute Name]) RETURN LOOKUPVALUE( 'Legend Table'[Color2], 'Legend Table'[Attribute Name], SelectedAttribute, "#FFFFFF" // Default color ) Dynamic Color3 = VAR SelectedAttribute = SELECTEDVALUE('Labour Data'[Attribute Name]) RETURN LOOKUPVALUE( 'Legend Table'[Color3], 'Legend Table'[Attribute Name], SelectedAttribute, "#FFFFFF" // Default color ) These measures use LOOKUPVALUE to fetch colors from the Legend Table  based on the selected attribute. A default color (#FFFFFF) is applied if no match is found. 3. Create a Title Table and Dynamic Title A dynamic title enhances the visualization by providing context based on user selection. Title Table = DATATABLE( "Attribute Name", STRING, "Display Title", STRING, { {"BUDGET_LABOR_HOURS", "Budget Labor Hours"}, {"BUDGET_TOTAL_LABOR_HOURS", "Budget Total Labor Hours"}, {"BUDGET_LABOR_VAR_WITH_DUV", "Budget Labor Var"}, {"All Attributes", "All Attributes"} } ) Dynamic Title = VAR SelectedAttribute = SELECTEDVALUE('Labour Data'[Attribute Name], "All Attributes") VAR DisplayTitle = LOOKUPVALUE('Title Table'[Display Title], 'Title Table'[Attribute Name], SelectedAttribute) VAR SelectedStartDate = MIN('Labour Data'[Calendar Day]) VAR SelectedEndDate = MAX('Labour Data'[Calendar Day]) RETURN "Analysis of " & DisplayTitle & " from " & FORMAT(SelectedStartDate, "YYYY-MM-DD") & " to " & FORMAT(SelectedEndDate, "YYYY-MM-DD") Dynamic Title  adjusts based on the selected attribute and date range. LOOKUPVALUE fetches the title from the Title Table , while FORMAT ensures proper date display. Visual Implementation Add the Legend Table to Your Data Model Import or create the Legend Table  directly in Power BI. Assign Colors to Data Points Use the dynamic color measures (Dynamic Color1, Dynamic Color2, Dynamic Color3) to conditionally format visuals. Apply Dynamic Titles Set the chart title to the Dynamic Title  measure for a contextual heading. Example Use Case Consider a Line and Clustered Column Chart  showing labor hours: X-axis : Calendar day. Y-axis : Values for budget labor hours, total labor hours, and labor variance. Legend : Dynamically updates based on selected attributes and colors. Conclusion Implementing legends in Power BI visuals enhances clarity and user experience. By using DAX formulas, dynamic measures, and tables, you can create visually appealing and context-rich charts tailored to your data's needs. Explore these techniques to make your Power BI reports more insightful!

  • Union Bank of India Investment Idea

    Union Bank of India Investment Idea Stock Code: UNIBAN Target Price: ₹ 182.00 Profit Potential: 32.14% Time Period: 12 Months Entry Price: ₹ 145.00 Status: Open Disclaimer: The information on this website is for general informational purposes only and does not constitute financial advice. Hariprasad Nakka is not a financial advisor. Always seek professional advice before making investment decisions. Investing in the stock market involves risks, including the loss of principal. This website and Hariprasad Nakka are not responsible for any losses or damages resulting from the use of this information. Use the information provided at your own risk.

  • BHEL Investment Idea

    BHEL Investment Idea Stock Code: BHEL Target Price: ₹ 390.00 Profit Potential: 23.14% Time Period: 30 Days Entry Price: ₹ 316.00 Status: Open Disclaimer: The information on this website is for general informational purposes only and does not constitute financial advice. Hariprasad Nakka is not a financial advisor. Always seek professional advice before making investment decisions. Investing in the stock market involves risks, including the loss of principal. This website and Hariprasad Nakka are not responsible for any losses or damages resulting from the use of this information. Use the information provided at your own risk.

View All

Other Pages (14)

  • About Us | wanderwisetech

    Hello Welcome to WanderwiseTech! I'm Hariprasad, the face behind this tech journey. Born in a charming village in Andhra Pradesh, I've navigated a path fueled by determination and a thirst for knowledge. About Me: Hariprasad 🔸 11+ Years in the Industry: With a legacy spanning over a decade, I'm not just experienced; I'm a proven expert in the data visualization arena. 🔸 Power BI Maestro: 10 dedicated years mastering Power BI, transforming raw data into actionable insights. 🔸 Diverse Corporate Portfolio: Proud associations with global leaders including HGS, Magna Infotech, Optum, and Virtusa, adapting and excelling in varied industrial landscapes. 🔸 Published Author: Beyond practical applications, I've penned my expertise, sharing my knowledge with a wider audience. 🔸 Medidata's Notable Project: Played a pivotal role in a significant healthcare analytics project with Medidata, underscoring my versatility and depth in the field. 🔸 Certified Expert: My commitment to continuous growth is reflected in the numerous Power BI and data analytics certifications I've earned. 🔸 Your Power BI Beacon: Crafting dynamic dashboards, insightful reports, and compelling narratives. If it's about Power BI, you're in expert hands. Dive in and explore! Let's transform data into stories together. Contact I'm always looking for new and exciting opportunities. Let's connect. nakkahariprasad@gmail.com

  • Form | wanderwisetech

    Apply Here First name Last name Email Phone Tell us about yourself... Resume Upload File Upload supported file (Max 15MB) Apply Now >

  • Loyalty | wanderwisetech

    Loyalty Earn points and turn them into rewards Become a Member 01 Sign Up Sign up as a member to start enjoying the loyalty program 02 Earn Points Order a plan Get 1 point Sign up to the site Get 50 points 03 Redeem Rewards 10% off all store products 10 Points = 10% off for all items 10% off all events 10 Points = 10% off for all plans

View All

Forum Posts (108)

View All

Contact

Setup

Blog

Ask Question

Subscribe Form

Thanks for subscribing!

©2023 by wanderwisetech. All rights reserved.

bottom of page