Forum Discussion

dieffen's avatar
dieffen
Frequent Visitor
3 years ago

Matrix different value calculation by each row category by month

I need to create a report that has different metric row categories ( total patient days, avg cenus, ER Visits, etc) where in most cases the  value needs to be summed but sometimes it needs to be averaged (avg census).  Then the columns would contain the month.  Each of category data comes in as a separate data source and have a field indicating the category type. I took the 3 tables and appended to a single table in PBI which becomes the source of the metric below.  The example shows 3 categories but there would be a dozen or more that I would need to add.  Is there a better approach or visualization which easily scales where depending on the category a different summarization function could be used (sum / avg)

 

Appreciate any help,

Eric

4 Replies