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.
Hi all,
I am trying to represent the total rain of different events along the time axis (as per image and table at the bottom). So when an event start, it should represent the total rainfall of that event until the event ends.
I tried with the dash function below but I am not getting the desires results. Would anyone have any sugestions on what I am doing wrong?
Many thanks,
Time | Rain mm | Event Group |
1 | 1 | 1 |
2 | 2 | 1 |
3 | 1 | 1 |
4 | 0 | 0 |
5 | 0 | 0 |
6 | 1 | 2 |
7 | 4 | 2 |
8 | 2 | 2 |
9 | 1 | 2 |
10 | 0 | 0 |
11 | 0 | 0 |
12 | 0 | 0 |
13 | 0 | 0 |
14 | 0 | 0 |
Solved! Go to Solution.
@Anonymous - If I understand this correctly, try this measure:
Measure =
VAR __EventGroup = MAX([EventGroup])
RETURN
SUMX(FILTER(ALL('Table'),[Event Group]=__EventGroup),[Rain mm])
See the attached PBIX below sig, Table (20), Measure 20.
@Anonymous , You can have new column like
Column = maxX(filter(Allselected(Table), Table[Event Group] =earlier(Table[Event Group])),Table[Rain])
or measure like
measure = calculate(max(Table[Rain]), allexcept(Table, Table[Event Group]))
or
measure = calculate(max(Table[Rain]), filter(Allselected(Table), Table[Event Group] =max(Table[Event Group])))
@Anonymous - If I understand this correctly, try this measure:
Measure =
VAR __EventGroup = MAX([EventGroup])
RETURN
SUMX(FILTER(ALL('Table'),[Event Group]=__EventGroup),[Rain mm])
See the attached PBIX below sig, Table (20), Measure 20.
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 |
---|---|
97 | |
96 | |
81 | |
74 | |
66 |
User | Count |
---|---|
129 | |
106 | |
106 | |
86 | |
72 |