Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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]
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
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]
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
It's really help me. Thank you so much.
User | Count |
---|---|
20 | |
14 | |
11 | |
8 | |
6 |
User | Count |
---|---|
23 | |
23 | |
20 | |
15 | |
10 |