Forum Discussion

v-mubish's avatar
v-mubish
Icon for Helper I rankHelper I
9 years ago
Solved

Different Behaviour of Custom Visual in Power BI Service and Desktop

Hi,   Trying to achieve a custom table visual. My dataset looks like-:   I am fetching format from options.dataview for columns. The diff. formats i got from datview in PBI service are-: f...
  • v-viig's avatar
    v-viig
    9 years ago

    You should use getFormatStringByColumn method to get a correct type that has been specified by Power BI Desktop.

     

    I'd recommend that you should use valueFormatter to format values.

     

    Ignat Vilesov,

    Software Engineer

     

    Microsoft Power BI Custom Visuals

    [email protected]

  • v-viig's avatar
    v-viig
    9 years ago

    Hello v-mubish,

     

    Could you please install @types/d3@3.5.36 (npm i @types/[email protected] --save) and try to build the visual again?

    Please pay attention to the fact that you should execute all of commands in the visual's directory.

     

    Ignat Vilesov,

    Software Engineer

     

    Microsoft Power BI Custom Visuals

    [email protected]