Forum Discussion

tenfingers's avatar
tenfingers
Advocate II
6 years ago

Creating a calculation group in Tabular Editor disables the format dropdown in Measure Tools

When I create a simple calculation group in Tabular Editor, it greys out / disables the format dropdown in the formatting area of Measure Tools in Report and table view. I am still able to change formatting in the model view but this is not as convenient sometimes. I have tested this on two different existing models and a model created from scratch but the result is always the same.

I am curious if this is the normal behaviour and is the same for other users?

Cheers

 

 

18 Replies

  • Is this also the reason why none of the columns summarized anymore? All numeric columns are missing the sigmas and I can't even choose to sum those with down arrow in values section. All format options are availabe in ribbon but summarization just won't happened.

     

    In a workaround I can use older version of the file, creates the visual with sums there and copying the visual into new file. The sums remains and everything works fine. And also, it is not very good practise to use columns straight so I normally use measures everywhere so the problem is not so huge. But in debugging purposes it is very handy to have the summarizing possibility and because of that, I really like if this will be fixed also.

    • tenfingers's avatar
      tenfingers
      Advocate II

      I also have this issue and find it annoying.

       

      cheers

      • tenfingers's avatar
        tenfingers
        Advocate II

        I have also found that removing all custom format strings from calculation groups does not fix anything so once you go there, theres no going back. The only way I have found to fix the issue is to delete all calculation groups and start over. ✌

    • DanYuncken's avatar
      DanYuncken
      Helper I

      This is happening to me. Does anyone know when this is expect to be fixed?

       

      Dan

    • tenfingers's avatar
      tenfingers
      Advocate II

      I have found some further details around this. 

      It seems to be triggered by using a custom format string for a calculation item in Tabular Editor. It also creates a hidden folder containing every measure in the table (seperate folders for each table). The measures in the hidden folder contain the format string of that measure:

      This doesnt seem like the correct behaviour to me.

       

      Cheers



      • tenfingers's avatar
        tenfingers
        Advocate II

        It would also appear that I can no longer change the format string in Power BI at all. The option is available in the modelling tab but changing it appears to have no effect. The only way I can change the format of a measure is by using a custom format string in tabular editor.

  • Having the same issue. Not tied to custom formatting in Calcualtion Group.

     

    I tracked it down to one calculation. An image of the calulation item is below. There is no way to work around this. All calculations in the image cause the issue. Note: 1+1 and 1-1 cause the issue as well.

     

     

    I think that it is due to the number of calculation items. My CG currently has 6. When I add one more, even one with the value of 1, it causes the issue.

     

     

     

     

    • tenfingers's avatar
      tenfingers
      Advocate II

      TrevorC 
      Thats interesting, I played around a bit but couldnt replicate the behaviour using different amounts of calculation items and SAMEPERIODLASTYEAR. I did find that entering any numerical value in a calculation item instantly breaks the measure formatting. I asked wether this issue would be fixed in a twitter thread and some members of the power BI team replied that it would be fixed for External Tools GA, although I cant find any reference anywhere as to when this is planned.

      • tenfingers's avatar
        tenfingers
        Advocate II

        Actually I was able to break it using a version of your Measure 3. 

  • This happens for all measures in the model not just the one used in the calculation group

    • tenfingers's avatar
      tenfingers
      Advocate II

      amitchandak - Thanks, Yes I dont have an issue editing the format strings in Tabular Editor or in Model View in Desktop. Its just inconvenient not to be able to use the option in Measure Tools in Desktop. I want to make sure this isnt indicative of an underlying issue that will negatively impact my models by using calculation groups. If other users have the same experience then i will chalk it up as the expected behaviour and proceed with implementing calculation groups in my models.
      Cheers

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

    Hi, tenfingers 

     

    I wonder if the measure uses FORMAT  function to converts a value to text according to the specified format. All predefined formatting strings use the current user locale when formatting the result. The format strings supported as an argument to the DAX FORMAT function are based on the format strings used by Visual Basic (OLE Automation), not on the format strings used by the .NET Framework. Therefore, you might get unexpected results or an error if the argument doesn't match any defined format strings.

     

    Best Regards

    Allan

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • tenfingers's avatar
      tenfingers
      Advocate II

      Hi v-alq-msft ,

       

      Thanks for your reply, this actually affects all measures in my models. After creating a calculation group of any type, even with just a single basic SUM measure as a calculation item, the format option becomes disabled for all measures in the model. I have the measures in a measured table, I'm wondering if that has anything to do with it. In any case, I don't think any of the measures in the models use the DAX FORMAT function. 
      Cheers