Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

Dynamic String Expression in Tabular Editor in my Calculation group

Hello,

 

is there a way to make my calculated group change the string format based on the measure I give it (I give quite a few)

 

some are numbers with a format of "#,0"

some are precentages that need %

some are currecny that need $

 

like this :

 

 

 

i really dont want to creat 1,000 measure for the time intelegance so i thought a calculated group will solve it but now i face another wall

 

thanks guys

4 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      ok, I read the article AND saw the video and read this one as well

      Controlling Format Strings in Calculation Groups - SQLBI

      but...

      in the words of Michael Scott "explain it to me as if I were a five year old"

       

      I just don't understand

      I have 3 types. $, %, and #,0

      how will it know when to use what?

       

      do i need to make another table and specify that each mesure should be a different type?

       

      MeasureType
      Measte 1

      $

      Measure 2 %
      Measure 3#,00
        
    • Anonymous's avatar
      Anonymous
      Not applicable

      i'm so close!

       

       

      i did 

       

       

      i can see it recognizes when it needs to be $,#,%

      but im not quite there.

       

      any sugjections?

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

        Hi Anonymous ,

         

        Does your problem have been solved? If it is solved, please mark a reply which is helpful to you.

         

        If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

         

        Best Regards,
        Winniz