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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
matskah
Frequent Visitor

Convert String to DAX Formula

Hi everyone,

 

I currently have a very basic semantic model containing a centralized fact-table with call-data.

As this fact-table is used in multiple applications I want to achieve the following:

 

I would like to create a centralized Formula-Book represented by an Excel-File that can be loaded into multiple applications.

The formula book should look sth like this:

 

matskah_0-1727257646673.png

 

Once I change the formula, the changed are applied in all the Apps that use the formula book.

 

From there I would like to create a Measure-Table that reads in all the Formulas and interprets these as such.

Somehow I am stuck as I cannot interpret the string as an actual DAX-Formula.

 

matskah_1-1727257780108.png

 

Can anyone of you please help me? 
Or do you have any other recommendations?

Thanks in advance!

 

2 REPLIES 2
matskah
Frequent Visitor

Hello @dharmendars007 ,

thanks for your effort and your reply, but that was not what I meant. Sorry if I was not specific enough here.

 

I already have a table in my PowerBI-Model.

This table consists of two columns.

  • Title: Contains the title of the measure (to be)
  • Formula: Contains the DAX-Formula for the measure (to be)

 

Basically I want the following:

I now want to create a measure that gets its information on how to calculate from a specific field value out of table column "Formula".

 

Example:

I have an entry in my "FormulaBook"-Table that has the value "#Calls" in the title column

matskah_0-1727329706457.png

So I want to create a measure in PowerBI that is called "#Calls" and the information on how it is to be calculated can be found in the corresponding "Formula"- column from the FormulaBook-Table.

 

How can I write my DAX-Formula for "#Calls", so that it interprets the Value from the "Formula"-column as an actual DAX-Formula and not just as a string-value?

dharmendars007
Super User
Super User

Hello @matskah , 

 

Please navigate to DAX Query section and input the measure as shown as above and you will be able to get all the measures in one place.

 

dharmendars007_0-1727266649504.png

 

If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.