March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello Experts,
I have following data table. I have a requirement to calculate SUM of Approval Age (days) columns based on unique values in ID column.
In table below, it should consider only one rows out of two rows with ID 51921.
ID | Count | cFeatureName | Approval Age (days) |
WTD Live-6780 | 1 | Feature 1 | 8 |
WTD Live-6786 | 1 | Feature 2 | 8 |
WTD Live-6782 | 1 | Feature 3 | 8 |
WTD Live-6789 | 1 | Feature 4 | 8 |
WTD Live-1233 | 1 | Feature 5 | 91 |
WTD Live-5192 | 1 | Feature 6 | 224 |
WTD Live-5192 | 2 | Feature 6 | 224 |
I tried referencing other threads but somehow it is not working and showing error with syntax.
Sum DISTINCT =
A table of multiple values was supplied where a single value was expected.
Solved! Go to Solution.
Hi @malpani
Please use
Sum DISTINCT =
SUMX (
VALUES ( 'WTD+SP_Pre-C3_Final'[ID] ),
CALCULATE ( MAX ( 'WTD+SP_Pre-C3_Final'[Approval Age (days)] ) )
)
Hi @malpani
Please use
Sum DISTINCT =
SUMX (
VALUES ( 'WTD+SP_Pre-C3_Final'[ID] ),
CALCULATE ( MAX ( 'WTD+SP_Pre-C3_Final'[Approval Age (days)] ) )
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
15 | |
12 | |
9 | |
8 |
User | Count |
---|---|
41 | |
32 | |
29 | |
12 | |
12 |