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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Medolah
Regular Visitor

adding measures as columns to a matrix

Hi All,

So I have a matrix table shown below and I wanted to include 3 measures  that I have created (overall average per ward, Target and % ratio which is overall avg divided by target). I want this 3 columns at the end of matrix, however Power BI keeps displaying the aggregate figures of the 3 measures for each week instead of a combined total for all 3 weeks. I have included a dummy pbix file that contains 2 pages; the matrix table and another page with the 3 measures I am trying to include at the end of the matrix table page. The dax I used to to create the average is also listed below and is contained in the pbix file (see link below) attached within. Can anyone help?

 

https://1drv.ms/u/s!AhEw68UYqcc6gwkbY0ziWLXXVheX?e=FeMUim

 

 

 

 

 

Average = 
AVERAGEX(
VALUES(' Calendar'[Week Ending Year]),
'Inpatients Measures'[Inpatient Discharges]
)

 

 

 

 

 

 

Matrix tableMatrix table

5 REPLIES 5
PaulDBrown
Community Champion
Community Champion

See if this helps:

Creating a custom matrix 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






@PaulDBrown  Thank you for your reply. I was hoping there was a measure that I could use to ensure that the aggregate values (average, target, %) appear as columns. The dataset I am working with doesn't permit the creation of new tables or columns whilst working with the certified dataset so was hoping I could use a measure to give me the layout below;

Preferred Matrix table layoutPreferred Matrix table layout

Can't you import new tables? You cannot create new tables using DAX either?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

Hi @Medolah ,

 

I open a PBIX file and it says I don't have permission to connect to the data source.

vcgaomsft_0-1650851435366.png

Would you mind re-providing data that has no privacy? You may consider using import mode for PBIX files. Thanks in advance.

 

Best Regards,
Community Support Team_Gao

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

@Anonymous I have resent it and hope you can now open it. https://1drv.ms/u/s!AhEw68UYqcc6gwkbY0ziWLXXVheX?e=FeMUim 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.