Skills Advisor | Data Visualization
Highlighted Data Visualization for NHS ICB
This guide provides a DAX measure and chart configuration to automatically emphasize "NHS Bath And North East Somerset, Swindon And Wiltshire Integrated Care Board" in visualizations, while contextually displaying data from other
Prompt
Answer
Data Visualization Guidance for NHS ICB Chart
Objective
Your goal is to create a chart that automatically highlights and positions the data for "NHS Bath And North East Somerset, Swindon And Wiltshire Integrated Care Board" while also displaying data from other organizations without needing to manually adjust a slicer.
Proposed DAX Measure Adjustment
The current DAX measure needs to focus the chart on the specified organization while still providing context with the remaining data.
Revised DAX Measure
The following measure adjusts your initial approach, ensuring the desired organization is prominent and visible in the chart:
Opido1_ICB_Combined =
VAR SelectedOrg = "NHS Bath And North East Somerset, Swindon And Wiltshire Integrated Care Board"
VAR BaseMeasure = SUM(Fact_Opiod1_ICB[Patients receiving opioid pain medicines per 1,000 patients])
RETURN
IF(
SELECTEDVALUE(Fact_Opiod1_ICB[Prescribing organisation]) = SelectedOrg,
CALCULATE(
BaseMeasure,
DatesCalendar[MonthnYear]
),
CALCULATE(
BaseMeasure,
DatesCalendar[MonthnYear],
ALL(Fact_Opiod1_ICB[Prescribing organisation])
)
)
Explanation of Code
Variable Declaration:
SelectedOrg
stores the name of the organization you want to focus on.BaseMeasure
defines the core calculation used for both scenarios simplifying future adjustments.
Condition Handling:
- If the selected organization matches the desired ICB, it calculates the sum specifically for that organization.
- For all other selections, it calculates the sum across all organizations, effectively creating a background context but ensuring the primary organization is still highlighted.
Usage of
ALL
:- This directive ensures that when other organizations are displayed, the context is broadened to retain overall trends and patterns.
Chart Configuration
To ensure the visualization emphasizes the selected ICB:
Data Labels: Enable data labels on the chart for clarity. This facilitates quick identification of the ICB's performance compared to peers.
Sorting: Sort the chart by the measure value in descending order. This could help the selected ICB to appear higher in the visual representation.
Conditional Formatting: Consider applying conditional formatting to highlight the NHS Bath AECB in a distinct color compared to other organizations.
Interactivity: Ensure tooltips are enabled to provide detailed data insights on hover or selection.
Best Practices
Maintain Clarity: Keep the chart simple and focused. Avoid over-complicating visuals with too much data that could detract from the focal point.
User-Friendly Tools: Use slicers judiciously. Although you prefer not using them, they can aid users in viewing specific sets of data without overwhelming complexity.
Documentation: Document your measures and the logic behind them for future reference or if others are using your reports.
Continuous Learning and Resources
For further strengthening your skills in Data Visualization and DAX measures, consider exploring courses available on the Enterprise DNA platform. Engaging with structured learning can significantly enhance your proficiency in crafting effective data narratives.
This structured approach will help in achieving a clear and effective visualization while retaining focus on the specified organization.
Description
This guide provides a DAX measure and chart configuration to automatically emphasize "NHS Bath And North East Somerset, Swindon And Wiltshire Integrated Care Board" in visualizations, while contextually displaying data from other organizations.