The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
36 | |
14 | |
12 | |
7 | |
7 |