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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

can't create custom visualization in table format

Hello...
I am trying to create a custom visual which has table as output from static data.
I am following "Table Data Mapping" from below link and I am not able to incorporate different pieces of code in one typescript file using CLI tool to create a table as shown in below link :

 

https://github.com/Microsoft/PowerBI-visuals/blob/master/Capabilities/DataViewMappings.md#categorica...

 

 

I have added below lines of code to create a table data view from data but it is not displaying anything.

     var table = dataView.table;
                debugger;
                if(table){
                    var tablerows = table.rows;
                    var tablecolumns = table.columns;
                    var tabletotals = table.totals;
                  for(var i=0; i< tablerows.length; i++)
                  {
                      for(var j=0; j<tablecolumns.length; j++)
                      {
                          var value = tablerows[i][j];
                          viewModel.values[i].values.push(value);
                   }
                  }  
                }
            }

Can anyone please help me to understand the structure of typescript file to create a simple table with static data?

 

Is there any sample template available for creating visualization in table format?

 

Thank You...

0 REPLIES 0

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.