web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Number formatting for ...
Power Automate
Answered

Number formatting for HTML in power automate with power BI input

(0) ShareShare
ReportReport
Posted on by 29
 
Hello,

 

I'm looking for some help on below issue,

When I am doing number format by selecting the input from power BI values directly, flow is giving below error. And when am using the  same after "Run a query against a dataset" , Number formatting done without an error.

 

So please help me how can I do the number formatting by using below inputs -

 

"inputs": {
        "from""@triggerBody()?['entity']?['Power BI values']",
        "select": {
            "Decimal""@item()?['LTE_KPI_Cells_Daily[D_ACC%(C)]']",
            "DecimalFormat""@formatNumber(Float(item()?['LTE_KPI_Cells_Daily[D_ACC%(C)]']),'0.00')"

 

gujralh_1-1719110606188.png

 

gujralh_0-1719110514402.png

 

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    @gujralh 

    Try this expression

    formatNumber(coalesce(float(item()?['LTE_KPI_Cells_Daily[D_ACC%(C)]']), 0),'0.00')
  • gujralh Profile Picture
    29 on at

    Thanks @SudeepGhatakNZ 

    I tried the same but getting the error with this too.

     

    gujralh_0-1719111685894.png

     

    Additional info - when am trying the flow without formatting, it is getting success but I need to do the formatting as well

  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    @gujralh ,

    Is there a value that is either string or null?

    Try this expression

    formatNumber(float(coalesce(item()?['LTE_KPI_Cells_Daily[D_ACC%(C)]'], 0)), '0.00')

     

  • Verified answer
    gujralh Profile Picture
    29 on at

    Thanks @SudeepGhatakNZ , I got it. There were blank values coming for power BI values when using

    item()?['LTE_KPI_Cells_Daily[D_ACC%(C)]']. After changing to "item()?['D_ACC%(C)']" and doing formatting, it is getting success with all conversion method.

     

    Thanks once again for helping in identifying the issue.

     

    "inputs": {
            "from""@triggerBody()?['entity']?['Power BI values']",
            "select": {
                "Decimal""@item()?['D_ACC%(C)']",
                "DecimalFormat""@formatNumber(float(coalesce(item()?['D_ACC%(C)'], 0)), '0.00')",
                "DecimalFormat2""@formatNumber(float(item()?['D_ACC%(C)']), '0.00')"

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard