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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

How to work with Calculation groups - Dynamic format string - Format String Expression ?

I have a custom visual and I want to support "dynamic format strings". 
How can get the "Format String Expression" field for each column (calculation item) that was created by Tabular Editor? 

Example

Taras_0-1672939852098.png

Then I can't get the column format for my custom visual.

I found the same question before, but no answers: https://community.powerbi.com/t5/Custom-Visuals-Development/Dynamic-format-strings/m-p/2424652

1 ACCEPTED SOLUTION
dm-p
Super User
Super User

Hi @Anonymous,

I don't really work with calculation groups, so I don't particularly understand them very well.

That being said, if I follow the instructions in the release notes and add a calculation group my my visual, I can see that the format string specifier moves from the column/measure metadata into a new objects property in the data view, e.g.:

 183780543-82581976-e9a7-4e3a-96bd-10b7bc83d9ab.png

With this approach I presume that you will have to look at each row's format string and apply it as you iterate. This might also include regular measures, as this seems to change the behaviour for all format strings in the data view (although I might be wrong).

Hopefully this may give you some ideas, but I don't think I can provide any further assistance without significant time investment (which I'm very short of at present).

Good luck!

Daniel





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

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




View solution in original post

2 REPLIES 2
dm-p
Super User
Super User

Hi @Anonymous,

I don't really work with calculation groups, so I don't particularly understand them very well.

That being said, if I follow the instructions in the release notes and add a calculation group my my visual, I can see that the format string specifier moves from the column/measure metadata into a new objects property in the data view, e.g.:

 183780543-82581976-e9a7-4e3a-96bd-10b7bc83d9ab.png

With this approach I presume that you will have to look at each row's format string and apply it as you iterate. This might also include regular measures, as this seems to change the behaviour for all format strings in the data view (although I might be wrong).

Hopefully this may give you some ideas, but I don't think I can provide any further assistance without significant time investment (which I'm very short of at present).

Good luck!

Daniel





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

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Anonymous
Not applicable

@dm-p  could you help me with it? Or any idea?

The same question was before, but no answers:
https://community.powerbi.com/t5/Custom-Visuals-Development/Dynamic-format-strings/m-p/2424652

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors