Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
qharley
New Member

Data structure for multiple lists

I am very new to Power BI and currently, I am trying to make an analysis of an extensive list of standards as a part of an organizational audit that I have conducted with my team.

 

I work in healthcare so there are specific standard lists for inpatients, mental health, the emergency department... etc. Each set of these standards is divided into 3 levels of priorities Priority 1, 2 and 3. The audit was done in multiple locations, and these standards were marked as Met & Unmet

 

I am looking for the best structure for the data so that I can use Power Query and Power Pivot to highlight:

  • Standards Met & Unmet in each standard list
  • Standards Met & Unmet at which location
  • Highlight Priority 1 & 2 in a heat map (2 colours)

This is an example of how the data is structured now 

Std_id#CriteriaPriorityAmb_clinic1Amb_clinic2Amb_clinic3Amb_clinic4Amb_clinic5 
Amb_1.11.1

xxxxxxxxxxx

xxxxxxxxx

3 Unmet MetMetMet 

 

Thanks,

 

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @qharley ,

 

Based on my understanding of your requirements, you can try this:

 

1. In Power Query Editor, unpivot your columns: Amb_clinic1 to Amb_clinic5.

amb-power query.gif

 

2. In Power BI Desktop, you can use Standard as a slicer to filter Met or Unmet.

amb-power bi desktop.gif

 

3. In Power BI Desktop, you can set background color of Priority 1 & 2.

amb-power bi desktop2.gif

 

Hope this could help you. For more details, please check the attached PBIX file.

Reference: https://docs.microsoft.com/en-us/power-bi/desktop-what-is-desktop.

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Icey
Community Support
Community Support

Hi @qharley ,

 

Based on my understanding of your requirements, you can try this:

 

1. In Power Query Editor, unpivot your columns: Amb_clinic1 to Amb_clinic5.

amb-power query.gif

 

2. In Power BI Desktop, you can use Standard as a slicer to filter Met or Unmet.

amb-power bi desktop.gif

 

3. In Power BI Desktop, you can set background color of Priority 1 & 2.

amb-power bi desktop2.gif

 

Hope this could help you. For more details, please check the attached PBIX file.

Reference: https://docs.microsoft.com/en-us/power-bi/desktop-what-is-desktop.

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you so much. That's what I was actually looking for.

 

There is another piece related to conditional formating. I have multiple standards and the example we used is only for one set of them.

What is common across different lists is that they have the same priority (1) but with different std_id. The text in the standard phrase is exactly the same but the id varies from one standard to another.

 

How I can draw a matrix to highlight the priority (1) if unmet with red and met with green through all location and all standard lists

Icey
Community Support
Community Support

Hi @qharley ,

 

Try this:

1. Create a measure.

Measure =
IF (
    MAX ( 'Table'[Priority] ) = 1,
    IF (
        MAX ( 'Table'[Standard] ) = "Met",
        1,
        IF ( MAX ( 'Table'[Standard] ) = "Unmet", 0 )
    )
)

2. Set conditional formatting.

priority.PNG

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Super User
Super User

Well, you almost certainly want to unpivot your Amb_clinic# columns.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.