Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hello,
My table follows this structure:
| CODE | DATE | QTD |
| AA | 12/12/2020 | 5 |
| AA | 12/12/2020 | 5 |
| AA | 26/12/2020 | 8 |
| BB | 28/12/2020 | 2 |
| BB | 31/12/2020 | 2 |
I would like to create a measure that makes the sum of distinct values of the QTD column. So for the example above, the sum should be equal to 15 (5+8+2). And if I filtered by CODE=AA in my dashboard, it should be equals to 13 (5+8).
Can someone help me?
Solved! Go to Solution.
@Anonymous , Try a measure like
sumx(distinct(Table[QTD]), [QTD])
@amitchandak how about if i want to sum distinct values for QTD based on their codes for the most recent date submitted?
Hi,
I have a similar issue but based on the example above I'd like to SUM content of column B only once per unique row examined by the content of A column.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 21 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 58 | |
| 55 | |
| 42 | |
| 26 | |
| 24 |