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.
I have a table where I would like to check the average value on latest date but these average values are data points for different description,
so for example I have this table:
Table A
Id | Machines |
1 | MachineA |
2 | MachineA |
3 | MachineA |
4 | MachineA |
Table B
ID | timeseriesId | Description |
1 | 34333 | Pressure rate |
1 | 34339 | Flow rate |
1 | 44343 | Temperature |
2 | 22211 | Pressure rate |
2 | 33222 | Flow rate |
Table C
TimeseriesId | Value | Timestamp |
34333 | 34 | 2021-12-12 12:09:12 |
34333 | 43 | 2021-12-21 10:00:00 |
34333 | 12 | 2021-01-10 21:09:12 |
44343 | 19 | 2021-12-12 12:09:12 |
22211 | 21 | 2021-12-10 12:09:12 |
22211 | 91 | 2021-11-11 12:09:12 |
So if you see in these three tables(all conneceted by one-many relationship) I am interested in getting the Pressure rate recorded latest for each machine. So in here I am interested to create a measure which gives me value (43) as that is the latest Pressure rate recorded for machineA and 21 which is latest pressure rate recorded for machineB. Similary I would like this for other machines. How can I do this??
Solved! Go to Solution.
Hi @PowerrrBrrr ,
You can try this measure:
@jppv20 I dont get the result. I took a table visual and added ID timestamp and pressure rate, and I get blank . there is no values in any column
Hi @PowerrrBrrr ,
You can try this measure:
@jppv20 I dont get the result. I took a table visual and added ID timestamp and pressure rate, and I get blank . there is no values in any column
@PowerrrBrrr Try this:
Measure=var LastTime=LASTNONBLANK('Table C'[Timestamp],SUM('Table C'[Value]))
return CALCULATE(SUM('Table C'[Value]),FILTER('Table C','Table C'[Timestamp]=LastTime&&'Table B'[Description]="Pressure rate"))
Here tableB[Desciption ] gives an error in measure. it seems to be not available when creating measure
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 |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |