Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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)

Adambk_0-1624367893317.png

 

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

some are precentages that need %

some are currecny that need $

 

like this :

Adambk_2-1624368095427.png

 

 

 

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 4
selimovd
Super User
Super User

Hey @Anonymous ,

 

that's possible, you can adapt the format with DAX.

Check the following article:

Dynamic format strings with calculation groups - SQLBI

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 
Anonymous
Not applicable

i'm so close!

Adambk_0-1624442983233.png

 

 

i did 

Adambk_1-1624442999091.png

 

 

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

but im not quite there.

 

any sugjections?

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

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
  

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.