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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Please help me some Power BI Experts, I have problem like the first picture when I extracted data. My table with the ID repeated the values each month
Can anyone help me to write a DAX formula to Sum the distinct value group by ID and each Month like following table. Thank you very much.
Solved! Go to Solution.
Hi,
I am not sure if I understood your data model correctly without seeing the actual one, but please try the below measure.
Distinct value sum measure: =
SUMX (
ADDCOLUMNS (
SUMMARIZE ( 'table name', 'table name'[MONTH], 'table name'[ID] ),
"@distinctvalue", CALCULATE ( MAX ( 'table name'[VALUE] ) )
),
[@distinctvalue]
)
Hi,
I am not sure if I understood your data model correctly without seeing the actual one, but please try the below measure.
Distinct value sum measure: =
SUMX (
ADDCOLUMNS (
SUMMARIZE ( 'table name', 'table name'[MONTH], 'table name'[ID] ),
"@distinctvalue", CALCULATE ( MAX ( 'table name'[VALUE] ) )
),
[@distinctvalue]
)
It's really help me. Thank you so much.