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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Syndicate_Admin
Administrator
Administrator

Add a column in a visual amtrix

Hi community,

I hope that you can help me with this question, I would like to add an average column in my visual matrix, for example.

diegoa2f_0-1675119805150.png

I have this table and I would like to add an average column in the beginning of my first date (01/01/2023)

Hope you can help me

Best regards.

2 REPLIES 2
amitchandak
Super User
Super User

Hi Sydicate,

Thank you for your answer, the problem is that all the data in the matrix table are mesure, I'm using a switch to create all those values, this is my DAX.

Consolidated = if(HASONEVALUE('Categories'[Category]),
SWITCH(VALUES('Categories'[Category]),
"Customers",DISTINCTCOUNT(Data[ins_no]),
"HU Clients", [HU],
"HU% Clients",FORMAT([HU]/COUNT('CategoríaHU'[HU?]),"percent"),
"Clients c/eventos Acum", [AcumCliente],
"Total Events Acum.", [EventosAcum],
"Accumulated HU", [AcumHU],
"Cumulative%", FORMAT([Cumulative%],"percent")))
Is it posible to add a column and make an average with those rows.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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