Bird
0
0

Given a column 'Sales' with text data type containing values like '100', '200', '300', what will be the result of this DAX measure after changing 'Sales' to Whole Number type?

medium📝 dax lod result Q13 of 15
Power BI - Power Query Editor
Given a column 'Sales' with text data type containing values like '100', '200', '300', what will be the result of this DAX measure after changing 'Sales' to Whole Number type?

Total Sales = SUM('Table'[Sales])
AIt will return an error because SUM cannot be used on numbers
BIt will concatenate the text values: '100200300'
CIt will sum the numbers correctly: 600
DIt will return zero because the column is text
Step-by-Step Solution
Solution:
  1. Step 1: Understand the effect of changing 'Sales' to Whole Number

    Changing 'Sales' from text to whole number converts values like '100' to 100 as numbers.
  2. Step 2: Evaluate the SUM function on numeric data

    SUM adds numeric values, so 100 + 200 + 300 = 600.
  3. Final Answer:

    It will sum the numbers correctly: 600 -> Option C
  4. Quick Check:

    SUM of numbers = 600 [OK]
Quick Trick: SUM works only on numeric data types [OK]
Common Mistakes:
  • Expecting SUM to concatenate text
  • Thinking SUM causes error on numbers
  • Assuming text columns sum to zero

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Power BI Quizzes