Power BI Table Multiple Metrics

boehnc

Board Regular
Joined
Mar 26, 2002
Messages
65
Simplified visual and data set enclosed. I'm trying to get a table format with the enclosed data set. Multiple metrics with different data types in rows and within a category in columns. Not sure I'm thinking too hard, but best way to accomplish? Table/matrix doesn't seem to fit the need from what I'm seeing. Any thoughts would be appreciated.
 

Attachments

  • Table Visual.PNG
    Table Visual.PNG
    15.4 KB · Views: 10

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Power Queery M-Code
Code:
// Table1
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(Source, {"Patient", "Facility"}, "Attribute", "Value"),
    #"Added Prefix" = Table.TransformColumns(#"Unpivoted Other Columns", {{"Attribute", each "Avg. " & _, type text}}),
    #"Pivoted Column" = Table.Pivot(#"Added Prefix", List.Distinct(#"Added Prefix"[Facility]), "Facility", "Value"),
    #"Grouped Rows" = Table.Group(#"Pivoted Column", {"Attribute"}, {{"St. Agnes", each List.Average([Agnes]), type number}, {"Park", each List.Average([Park]), type number}, {"Friedmans", each List.Average([Friedmans]), type number}}),
    #"Rounded Off" = Table.TransformColumns(#"Grouped Rows",{{"St. Agnes", each Number.Round(_, 2), type number}, {"Park", each Number.Round(_, 2), type number}, {"Friedmans", each Number.Round(_, 2), type number}})
in
    #"Rounded Off"
then change Mortality values to % (format from the ribbon)
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top