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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
DebbieE
Community Champion
Community Champion

Use the results of on DAX as a single value number in another

I have created some DAX to create a measure which works perfectly as a single value card

 

I want to use the result in another bit of DAX (Measure) but when I use it it seems to add the filters from the low level DAX to the top level DAX.

 

Is there anyway to Return the Single value without any of its filters. In the same way as you would copy a value in Excel and Paste as values

 

If I 'Hardcode' the same value for the top level DAX it works perfectly

4 REPLIES 4
jairoaol
Impactful Individual
Impactful Individual

DAX measures are always assessed according to the context in which they are used, so you should always take this functionality into account.

to resolve the issue on time, keep in mind:

  • Items that the card takes into account to show the value
  • Apply those same elements to the new DAX formula to get the same result always, no matter the context where you use it in other visualizations.
  • Change the context of the DAX formula using functions such as ALL, ALLSELECTD, KEEPFILTERS, and REMOVEFILTERS
CNENFRNL
Community Champion
Community Champion

Hi, @DebbieE , did you ever try to author a new measure including the old new this way?

New Measure = 
VAR __old_measure = CALCULATE ( [Old Measure], ALL(CetainTables or Columns) )
...

As you know, measures are extremely sensitive to evaluation context, it's really hard to pinpoint a solution without taking a close look at your data model and viz.


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

DebbieE
Community Champion
Community Champion

I have already tried that. I thought there may be some DAX that literally converts to values, like you get in Excel

I already have an open question containing the actual DAX. I just added this one to see if there was a simple answer but I dont think there is unfortunaltey

Hi @DebbieE  , every time when a measure is used, no matter singly used or used in other DAX codes, it will be evaluated according to its current context. The result of a measure will not be stored in the model, so there is not a static measure value to be used somewhere else.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors