Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hey,
I am trying to sum all values in column "Delta" (please see below) that come before the first empty row. Is there a way using DAX to do this? In other words, for the below data, I need a measure that calculates 2.1 + 3.5 + 7.7 + 1.2 = 14.5.
ID | Delta |
1 | 2.1 |
2 | 3.5 |
3 | 7.7 |
4 | 1.2 |
5 | |
6 | 5.8 |
7 | 1.0 |
8 | |
9 | 4.5 |
10 | 6.8 |
11 | |
12 | 2.1 |
13 | |
14 |
|
Thank you!
Solved! Go to Solution.
Hi @eliele ,
You can create a measure as below:
Measure 3 = VAR _minID = CALCULATE ( MIN ( Sheet6[ID] ), Sheet6[Delta] = BLANK () ) RETURN CALCULATE ( SUM ( Sheet6[Delta] ), Sheet6[ID] < _minID )
Best regards,
Yuliana Gu
Hi @eliele ,
You can create a measure as below:
Measure 3 = VAR _minID = CALCULATE ( MIN ( Sheet6[ID] ), Sheet6[Delta] = BLANK () ) RETURN CALCULATE ( SUM ( Sheet6[Delta] ), Sheet6[ID] < _minID )
Best regards,
Yuliana Gu
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |