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


Empty image or helper icon

Prompt

this dax measure still enable the chart to focus on NHS Bath And North East Somerset, Swindon And Wiltshire Integrated Care Board as mentioned i have 42 organisations on the chart, i need to drag the chart slicer to ensure the chart shows NHS Bath And North East Somerset, Swindon And Wiltshire Integrated Care Board. I want the chart automatically to show the organisation position on the chart including the other remaining without using the slicer to drag it to its position  Opido1_ICB_Combined = 
IF(
    SELECTEDVALUE(Fact_Opiod1_ICB[Prescribing organisation]) = "NHS Bath And North East Somerset, Swindon And Wiltshire Integrated Care Board",
    CALCULATE(
        SUM(Fact_Opiod1_ICB[Patients receiving opioid pain medicines per 1,000 patients]),
        DatesCalendar[MonthnYear]
    ),
    CALCULATE(
        SUM(Fact_Opiod1_ICB[Patients receiving opioid pain medicines per 1,000 patients]),
        DatesCalendar[MonthnYear],
        ALL(Fact_Opiod1_ICB[Prescribing organisation])
    )
)

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

  1. 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.
  2. 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.
  3. 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:

  1. Data Labels: Enable data labels on the chart for clarity. This facilitates quick identification of the ICB's performance compared to peers.

  2. Sorting: Sort the chart by the measure value in descending order. This could help the selected ICB to appear higher in the visual representation.

  3. Conditional Formatting: Consider applying conditional formatting to highlight the NHS Bath AECB in a distinct color compared to other organizations.

  4. Interactivity: Ensure tooltips are enabled to provide detailed data insights on hover or selection.

Best Practices

  1. Maintain Clarity: Keep the chart simple and focused. Avoid over-complicating visuals with too much data that could detract from the focal point.

  2. 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.

  3. 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.

Create your Thread using our flexible tools, share it with friends and colleagues.

Your current query will become the main foundation for the thread, which you can expand with other tools presented on our platform. We will help you choose tools so that your thread is structured and logically built.

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.