The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi all!
I had searched but do not seem to find a solution. Please help?
I have the following table (sample) and need a Measure to sum up the duration for distinct IDs only i.e. (10 + 13 + 5 + 4 = 32 minutes). How do I do that?
ID Duration (minutes)
101 10
101 10
130 13
130 13
130 13
142 5
165 4
165 4
Thanks in advance!
Regards,
Yee Pin
Solved! Go to Solution.
Hi @Anonymous
Assuming duration is always the same for a specific ID:
Measure = SUMX ( DISTINCT ( Table1[ID] ), CALCULATE ( MIN ( Table1[Duration] ) ) )
Hi @Anonymous
Assuming duration is always the same for a specific ID:
Measure = SUMX ( DISTINCT ( Table1[ID] ), CALCULATE ( MIN ( Table1[Duration] ) ) )
Hi,
You can create a measure as below. This will work even if the values are different.
User | Count |
---|---|
65 | |
60 | |
55 | |
54 | |
31 |
User | Count |
---|---|
180 | |
88 | |
72 | |
48 | |
46 |