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 dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
12 | |
10 | |
6 |