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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
h4n1234
Frequent Visitor

Calculation Group - Dynamically change value based on format string

Hi,

I am trying to create a calc group for Euro conversions where the current format string is £ pounds.

(so that my calc group ignores %'s, whole numbers etc.)

 

This is my current expression but it doesn't make any impact to the numbers when applied.

 

if ( selectedmeasureformatstring() = "£#,##0", selectedmeasure()*1.11, selectedmeasure())

 I've tried a different combinations for the format string but not got anywhere.

 

Appreciate your time. 

3 REPLIES 3
Anonymous
Not applicable

HI @h4n1234,

What type of calcium fields are you sued? measure or calculate column? If you mean the calculated column, they should not interact with filter effects, I'd like to suggest you create a measure instead. (calculate column and filter are hosted on different data levels and you can't use child level to affect its parent)

Notice: the data level of power bi.

Database(external) -> query table(query, custom function, query parameters) -> data model table(table, calculate column/table/RLS) -> data view with virtual tables(measure, visual, filter, slicer)

Regards,

Xiaoxin Sheng

h4n1234
Frequent Visitor

thanks @amitchandak . I have tried it but my numbers still don't change:

h4n1234_1-1638197084487.png

h4n1234_2-1638197119532.png

Any other suggestions?

amitchandak
Super User
Super User

@h4n1234 , Try Like

if ( left(selectedmeasureformatstring(),1) = "£", selectedmeasure()*1.11, selectedmeasure())

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.