Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi guys, just started to learn power bi.
Would like to understand why error happens when I input the following formula:
=SUM(DISTINCT('Jun23 Data'[INCOME_AMT]))
Error returned: The SUM function only accepts a column reference as an argument.
Assuming below is my dataset
Month : Income_amt
Jan : 100
Feb : 100
March : 200
ps: I know this formula doesn't make sense... to sum distinct values for monthly income. But i just wanna find out how the dax works and why i cant get 300 in total.
Solved! Go to Solution.
Hi @Chriswyy
It returns a table with an unique column...That's why you need to use Sumx.
Check this at: https://dax.guide/distinct/#:~:text=DISTINCT%20DAX%20Function%20(Table%20manipulation)&text=Returns%....
Or the official link: https://learn.microsoft.com/en-us/dax/distinct-function-dax
Hi,
If I am not wrong, DISTINCT DAX function returns a table.
However, SUM DAX function needs a column.
Please try something like below.
Or,
Expected result measure: =
VAR _t =
SUMMARIZE ( Data, Data[Income_amt] )
RETURN
SUMX ( _t, Data[Income_amt] )
Expected result measure V2: =
VAR _t =
DISTINCT(Data[Income_amt])
RETURN
SUMX ( _t, Data[Income_amt] )
hmm.. I thought it will return a column based on the documentation
Hi @Chriswyy
It returns a table with an unique column...That's why you need to use Sumx.
Check this at: https://dax.guide/distinct/#:~:text=DISTINCT%20DAX%20Function%20(Table%20manipulation)&text=Returns%....
Or the official link: https://learn.microsoft.com/en-us/dax/distinct-function-dax
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
8 | |
8 | |
4 | |
3 |
User | Count |
---|---|
15 | |
14 | |
11 | |
10 | |
9 |