Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin 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.
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 -
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 -
How do we justify the Economics Sciences First year, it's 1969 and 1901?
Am I missing something?
Solved! Go to Solution.
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.
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.
User | Count |
---|---|
14 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
22 | |
11 | |
10 | |
10 | |
8 |