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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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