Forum Discussion

arniet's avatar
arniet
Frequent Visitor
6 years ago
Solved

Formatting issues

 

Hi, when creating a measure, some instances I am unable to have the option to select the format of my measure, in particular, I want to have zero decimal places as shown below. Is it because the numerator and denominator both have differring formats so it confuses Power BI when they are used in a new meausre via DIVIDE DAX?

 

 

kind regards

arnie

 

  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi arniet ,

     

     

    You are trying to return an integer and a string value in the same Measure.

     

    Try Like this measure

     

    Net Sales per order = Divide ( [MTD Curr [Net Sales] , [MTD Curr] , BLANK())

     


    Regards,

    Harsh Nathani


    Appreciate with a Kudos!! (Click the Thumbs Up Button)


    Did I answer your question? Mark my post as a solution!

9 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi arniet ,

     

     

    You are trying to return an integer and a string value in the same Measure.

     

    Try Like this measure

     

    Net Sales per order = Divide ( [MTD Curr [Net Sales] , [MTD Curr] , BLANK())

     


    Regards,

    Harsh Nathani


    Appreciate with a Kudos!! (Click the Thumbs Up Button)


    Did I answer your question? Mark my post as a solution!

  • AntrikshSharma's avatar
    AntrikshSharma
    Community Champion

    That could be an issue with the latest version of PBI, I have also faced a couple issues in June release that were not in the previous versions. Try switching applications and it might get unfreezed.

    • Anonymous's avatar
      Anonymous
      Not applicable
      "unfreezed" does not exist in English. Please use unfrozen. Thanks.

      Best
      D
      • AntrikshSharma's avatar
        AntrikshSharma
        Community Champion

        Anonymous  Thank you for pointing out a grammatical error on a PBI forum.

  • arniet's avatar
    arniet
    Frequent Visitor

    Thank you everyone for your input and resolving my query, much appreciated!!

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi arniet ,

       

      Thanks.

       

      Please mark the correct solution as Solved.

       

      Will help others in  the community.

       

      Thanks 

      HN