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! Request now

Reply
ADITYAGEDAM
New Member

Filter context change in Summarize and defined measure

I am learning DAX, Observed something weird,help me to understand -

I defined the measure as -

fIRSTYEAR MEASURE =
CALCULATE (
MIN ( 'Noble Prizes'[nobelPrizes.awardYear] ),
ALL ( 'Noble Prizes'[nobelPrizes.category.en] )
)

so when I make the table with the defined measure and Categories results to -

 

ADITYAGEDAM_0-1707155702575.png

which I understand completely.

but when I try to use the same measure in SUMMARIZECOLUMNS as -

 

Table 2 =
SUMMARIZECOLUMNS (
'Noble Prizes'[nobelPrizes.category.en],
'Noble Prizes'[nobelPrizes.categoryFullName.en],
"first year", [fIRSTYEAR MEASURE]
)

I get the following result when I make a table with first year -

ADITYAGEDAM_1-1707155937277.png

How do we justify the Economics Sciences First year, it's 1969 and 1901?

 Am I missing something?

 

 

 

 

 

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

you forgot the CALCULATE around the measure.

 

I recommend you install and use DAXDebugOutput.  Read about EVALUATEANDLOG, it is a fantastic tool to understand what DAX is doing on each step.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

you forgot the CALCULATE around the measure.

 

I recommend you install and use DAXDebugOutput.  Read about EVALUATEANDLOG, it is a fantastic tool to understand what DAX is doing on each step.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.