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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
unais
Helper V
Helper V

ADD Custom Rows in Table Matrix

Team,

In a Matrix, I have Sales Income, Material Cost, Cost of Sales  etc groping from the Table value

As mentioned first Screenshots need to ADD new Custom rows in Matrix BI Report. how can we add custom

 
 
 

Capture1.JPGCapture2.JPG

13 REPLIES 13
v-kelly-msft
Community Support
Community Support

Hi @unais

 

Go to query editor>add column>custom column,then use below formula:

Annotation 2020-04-20 100530.png

 
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

Hi,

 

thanks your replay but am looking to ADD new Rows in " MATRIX " Visual , I need to custom rows in between two Rows in MATRIX Visuals

i have a visual Matrix ,First column is "GL Account Group " like , Sales income, Cost, Salaries and  Second columns is Total amount by accounts groups accounts.

As below

 

Sales income      20000

Cost of Sales      1000

salaries               30000

other expense     200

transport Expe     500

 

 

now I need a new Row between below Salaries with Some Mesure Values..

 

@unais ,You might have to create an intermediate Table

New table

Union (
Summarize(Table,Table[Calegory],"Value",Sum(Table[value)),
Summarize(Table,"Calegory","Total","Value",Sum(Table[value))
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@AM  can you please elaborate process

Hi @unais

 

I have a workaround for you :

1.I create a sample table as below:

Annotation 2020-04-21 173056.png

2.Create a dim table using below dax expression:

 

Table 2 = UNION(DISTINCT('Table'[Column1]),ROW("Column1","Total"))

 

Annotation 2020-04-21 173357.png

3,Then create a relationship between the 2 tables;

4.Create a measure as below:

 

Measure = IF(SELECTEDVALUE('Table 2'[Column1]) in FILTERS('Table'[Column1]),MAX('Table'[Column2]),SUMX(ALL('Table'),'Table'[Column2]))

 

And you will see:

Annotation 2020-04-21 173521.png

For the related .pbix file,pls click here.

 

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

 

@v-kelly-msft   thanks for you support..

 

refer below file, I had created Two table, 

 

Transaction table is about all transaction

matrixoder Table which exactly we need in Matrix visual

 

In Matrixorder Table row (4 and 5) don't have a relation with the Transaction Table but in Matrix Visual Need show Value

 

Gross profit: a total of "Sales +Sales cost +Salaries"

Gross Margin: Margin between "Sales " and Cost (Sales cost +Salaries)

 

https://1drv.ms/u/s!AnNpoBzguZmmgeVBArkjvyPR0NIYTQ?e=SvxH3N

Team

any hope

 

reffer below link... Exact Solution....

 

 

 

https://1drv.ms/u/s!AnNpoBzguZmmgeVObN4IPUbCN1jEzQ?e=fgxosj

 

 

I had created a new Mesure which I need to Add on below of Total as Rows. Mesures are not able to ADD has Row in Matrix Visual.

 

 

Capture3.JPG

 

 

am look like to have, below Exact solution, based on the below link its not clear solution.. any one have detailes

 

https://blog.enterprisedna.co/power-bi-reporting-templates-expanded-power-bi-visualization-concepts/

amitchandak
Super User
Super User

@unais 

If the are measures
Total = [Sales Income]+ [Material Cost] + [Gorss Profit] // Same way Add others
If they are dimesnion values
Total = calculate(sum(Table[Values]), Table[Type] in {"Sales Income","Material Cost","Gorss Profit"}) // Same way Add others

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

sales income, material cost ,Salaries are from Table Firleds  .. my concern is how to add this new custom rows in between the rows.. 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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