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
Philip_TopNotch
New Member

How to format a column with commas, in a html table created from a Power BI data, in power Automate.

I created a power automate flow in Power BI, that select Power BI data, creates a HTML table, with a CSS style applied, i require assistance on how to format the number column in the html table created to have comma seprators or as currency.

Philip_TopNotch_0-1685278414372.png

 I want to format the Potential loss >50M with comma seperators

Philip_TopNotch_1-1685278617746.png

 

The HTML code used for the table style.

 

 

 

<style>
table {
  border: 1px solid #1C6EA4;
  background-color: #EEEEEE;
  width: 100%;
  text-align: left;
  border-collapse: collapse;
}
table td, table th {
  border: 1px solid #AAAAAA;
  padding: 3px 2px;
}
table tbody td {
  font-size: 13px;
}
table thead {
  background: #1C6EA4;
  border-bottom: 2px solid #444444;
}
table thead th {
  font-size: 15px;
  font-weight: bold;
  color: #FFFFFF;
  border-left: 2px solid #D0E4F5;
}
table thead th:first-child {
  border-left: none;
}
</style>


@{body('Create_HTML_table')}

 

 

 

The output mail is shown below. This is the column i want to be formatted with comma seperators or as currency.

Philip_TopNotch_3-1685279024575.png

 

 

Assistance would be highly appreciated.

0 REPLIES 0

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.