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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
Memorable Member
Memorable Member

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
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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