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
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
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 community update carousel

Fabric Community Update - June 2025

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