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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
DCPics
Helper I
Helper I

Creating a measure that calls another measure......

Hello,

 

I am hoping you can help me.  I have a table with a ton of data and I'm trying to create one measure that calculates what I need correctly.

 

So, I have a column named "Key", and based on the value of "Key", I need my other column "Results" to perform the proper math.  I have 5 measures created with the proper formulas, however I don't know how to call them.

 

My key is either "PAPER-FT", "PAPER-LB", "FILM-FT", "FILM-LB", or "FOAM-LB", and the measures I have created are called the identical name so it stays easy (so I thought).  So if Key = "PAPER-FT" I want it to run the calculation in my measure "PAPER-FT", etc.

 

I konw how to do it with a calculated column, and it works, however it's so big that if I try to add anymore columns my BI crashes and says it is out of memory.  I know that's b/c it has to do the math for all those calculations then assign them to each row.  That is why I am trying to do this with a measure, but I'm stumped.   

 

I hope I explained this clear enough, please let me know if you have any questions, and thank you very much for your help with this!

1 ACCEPTED SOLUTION
Nathaniel_C
Community Champion
Community Champion

Hi @DCPics

Try this: Dummied up two measures and called them from the third.
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel

 

 

Paper-FT calc = 1+2

 

 

Paper-LB calc = 1-2

 

 

Results = IF(MAX(myTable[Type])= "Paper-FT",[Paper-FT calc],IF(max(myTable[Type])="Paper-LB",[Paper-LB calc]))​

 



resultws.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
Nathaniel_C
Community Champion
Community Champion

Hi @DCPics

Try this: Dummied up two measures and called them from the third.
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel

 

 

Paper-FT calc = 1+2

 

 

Paper-LB calc = 1-2

 

 

Results = IF(MAX(myTable[Type])= "Paper-FT",[Paper-FT calc],IF(max(myTable[Type])="Paper-LB",[Paper-LB calc]))​

 



resultws.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thank you very much for your help with this!  I really appreicate it.  I didn't realize you could do IF's in a measure.

Hi @DCPics , you are welcome! 
Try @MattAllington 's book, Supercharge Power BI.  

Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks for the tip on the book, I'm going to look it up now.  Thanks again for the help.

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.