Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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
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
Solved! Go to Solution.
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.:
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
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
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.:
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
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
@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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.