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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
DW868990
Helper IV
Helper IV

Deneb - Vega Lite Format String

Hi,

 

I have a deneb visual in which I am using Vega Lite, I need the measure in the visual to show the dynamic format string that is set for this measure within pbidesktop, is this possible to set within the vega lite visual, for it just to use the existing format string for the measure? so its not defined within the vega lite. If so, any advice on the syntax for this would be great, thanks in advance.

1 ACCEPTED SOLUTION
dm-p
Super User
Super User

Hi @DW868990,

 

This functionality was introduced in 1.6, and because formatting strings are contextual, each measure in your dataset will now have two additional columns in the dataset for each row:

  • [measure name]__format - the format string for the measure. This is in case you need direct access to it for use in the pbiFormat function, or using the pbiFormat custom format type.

  • [measure_name]__formatted - the measure value formatted according to the format string in the same row.

Regards,

 

Daniel





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

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


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




View solution in original post

1 REPLY 1
dm-p
Super User
Super User

Hi @DW868990,

 

This functionality was introduced in 1.6, and because formatting strings are contextual, each measure in your dataset will now have two additional columns in the dataset for each row:

  • [measure name]__format - the format string for the measure. This is in case you need direct access to it for use in the pbiFormat function, or using the pbiFormat custom format type.

  • [measure_name]__formatted - the measure value formatted according to the format string in the same row.

Regards,

 

Daniel





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

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


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




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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

Top Solution Authors
Top Kudoed Authors