Skills Advisor | Data Visualization

Automated Focus Visualization for NHS ICB

This guide outlines a solution to adjust data visualization for 42 organizations, ensuring "NHS Bath And North East Somerset, Swindon And Wiltshire Integrated Care Board" is highlighted and positioned automatically within the view,


Empty image or helper icon

Prompt

i have a chart that shows 42 organisations, including organisation A highlighted in green, however the issue is that i need to drag the slicer to position organisation A to be visible. I want an automatic process that the chart visibility to focus on organisation A without using the slicer to Organisation A here the dax measure that i am currently using for the chart field dax measure: Opido1_ICB = CALCULATE(
    SUM(Fact_Opiod1_ICB[Patients receiving opioid pain medicines per 1,000 patients]),
      
    DatesCalendar[MonthnYear]) the organisation name that is part amongst 42 organisation is Nhs Bath And North East Somerset, Swindon And Wiltshire Integrated Care Board.  this dax measure issue only show NHS Bath And North East Somerset, Swindon And Wiltshire Integrated Care Board but i want to see also the remaining 41 organisations on the chart. So i want the visual chart automatically to show NHS Bath And North East Somerset, Swindon And Wiltshire Integrated Care Board position on the chart withouth using the slicer to drag it to its visible position whilst also showing the remaining organisation before and after NHS Bath And North East Somerset, Swindon And Wiltshire Integrated Care Board position Opido1_ICB_Automated = 
CALCULATE(
    SUM(Fact_Opiod1_ICB[Patients receiving opioid pain medicines per 1,000 patients]),
    DatesCalendar[MonthnYear],
    Fact_Opiod1_ICB[OrganisationName] = "NHS Bath And North East Somerset, Swindon And Wiltshire Integrated Care Board"
)

Answer

Data Visualization Adjustment for Automatic Focus on Specific Organization

Problem Analysis

The challenge at hand is to adjust the visualization of 42 organizations so that "NHS Bath And North East Somerset, Swindon And Wiltshire Integrated Care Board" is automatically positioned in the view without requiring user interaction with the slicer.

Objective

To configure the chart to:

  1. Keep visibility of all organizations while highlighting NHS Bath And North East Somerset, Swindon And Wiltshire Integrated Care Board.
  2. Ensure that the organization is positioned correctly within the visual context of the remaining organizations.

Proposed Solution

Step 1: Modify DAX Measure

To achieve this, your DAX measure can be adjusted to create a calculated column or a measure that will modify the ranking or display logic based on the selected organization while still aggregating data for all organizations.

Here’s a potential approach using a new DAX measure:

Opido1_ICB_Automated = 
VAR SelectedOrg = "NHS Bath And North East Somerset, Swindon And Wiltshire Integrated Care Board"
RETURN 
CALCULATE(
    SUM(Fact_Opiod1_ICB[Patients receiving opioid pain medicines per 1,000 patients]),
    DatesCalendar[MonthnYear],
    FILTER(
        ALL(Fact_Opiod1_ICB[OrganisationName]),
        Fact_Opiod1_ICB[OrganisationName] = SelectedOrg || COUNTROWS(FILTER(Fact_Opiod1_ICB, 
            Fact_Opiod1_ICB[OrganisationName] <> SelectedOrg)) > 0
        )
    )
)

Explanation

  1. Variable Declaration: The variable SelectedOrg stores the name of the organization to focus on.
  2. Calculate Function: The CALCULATE function is utilized to change the context of the data being aggregated.
  3. Filter Logic: The FILTER function keeps all organizations but highlights the selected one. It ensures that only data from the selected organization is brought to the forefront while still showing all other organizations.

Step 2: Visualization Settings

  • Ensure that in your chart settings, you allow the automatic sorting based on the measure so that the visualization places NHS Bath And North East Somerset, Swindon And Wiltshire Integrated Care Board appropriately.
  • You may also want to consider using a Data Label to emphasize NHS Bath And North East Somerset, Swindon And Wiltshire Integrated Care Board for better visibility.

Best Practices

  • Dynamic Titles: If desired, create dynamic titles using DAX to reflect filtering conditions for better communication within the report.
  • Legend and Color Coding: Utilize colors consistently to differentiate the organizations clearly, where NHS Bath And North East Somerset, Swindon And Wiltshire Integrated Care Board could have a distinct color (such as green) to immediately draw attention.
  • Performance Efficiency: Assess the size of your dataset. If large, try to optimize your DAX queries to enhance performance and response time.

Conclusion

Implementing the above changes to your DAX measure allows you to maintain the visibility of all organizations while ensuring specific focus on NHS Bath And North East Somerset, Swindon And Wiltshire Integrated Care Board. By dynamically adjusting the context with DAX, your visual can highlight essential data more effectively.

For further enhancement of your skills in data visualization, consider exploring advanced courses available on the Enterprise DNA Platform, focusing on DAX and data visualization best practices.

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 outlines a solution to adjust data visualization for 42 organizations, ensuring "NHS Bath And North East Somerset, Swindon And Wiltshire Integrated Care Board" is highlighted and positioned automatically within the view, enhancing data clarity without user interaction.