Forum Discussion

JacqBogal's avatar
JacqBogal
Regular Visitor
3 years ago
Solved

HTML content Column Headers

Hi, I am trying to Create an HTML Table using a measure as my values input for the HTML Content Visual. 

The problem I am encountering is that I see my column headers repeating for every row I have when I add a measure for the granularity of the data.
Most Solutions online are quite outdated and tell me to input the Header with column names within the Formatting sections in the Visualizations Pane, however this is not available within the HTML Content Visual anymore.

 

Has anyone else come across this issue and found a work around so that the column headers are not repeated for every row?

 

Thanks in advance!

 

  • lbendlin's avatar
    lbendlin
    3 years ago
    HTML Test 2 = 
    VAR Sales = summarize(Financials,Financials[Country],"sales","<tr><td><b>" & FORMAT([$ Sales], "$#,##0") & "</b></td></tr>")
    RETURN "<HTML><table><tr><th>Total Sales</th></tr>" & CONCATENATEX(Sales,[sales]) & "</table></HTML>"

    see attached.

4 Replies