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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
matskah
Regular 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
Regular 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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