Forum Discussion

117325's avatar
117325
Frequent Visitor
7 years ago
Solved

Data Format Issue when connecting Smartsheet with Power BI

Our team is working on a dashboard with data directly connected to Smartsheet Data. We have correct data formats on the Smartsheet data source (i.e. whole number with no decimal point, $ for currency value). However, when connected to Power BI, the whole number changed to a decimal number and the currency value changed to the normal whole number format. Since this is a direct connection, the modelling function is not available. I wonder if this is an existing data integration issue or if there is a workaround?

 

  • Hi 117325 

    You could go to Edit queries, create a conditional column

    Then change its type to "Number"(whole number or decimal number as you like)

    Apply &close, go to report view, you could create a measure as i provide before to show the currency format.

    Measure 2 = FORMAT( MAX('Sheet2$'[spend]), "Currency") 

    You could download my pbix to see more details.

     

    Best Regards

    Maggie

     

    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

6 Replies

  • v-juanli-msft's avatar
    v-juanli-msft
    Community Support

    Hi 117325 

    A workaround is to create measures using "FORMAT" function to change it to your expected format.

    measure = FORMAT(MAX('Sheet2$'[ticket]), "General Number")
    
    Measure 2 = FORMAT( MAX('Sheet2$'[spend]), "Currency") 

     

    But in this way, "format" function can only be used in measure and the measures are of Text type.

    So the measures may not be used for calculation, it can only be useful for displaying.

     

    Best Regards

    Maggie

     

    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • 117325's avatar
      117325
      Frequent Visitor

      Thanks for the solution. Maggie. I was able to pull the format for the whole number. However, there is an issue with the currency format as the current cost column is in a text value with mixed currency value and text with "TBD". Any way we can change the existing text value column in currency format ($) - only to the currency value cells. 

       

       

       

      • 117325's avatar
        117325
        Frequent Visitor

        Adding screenshot of the cost column with the mixed values