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.
Hello,
I have a table with data/values every 15 minutes (See and excerpt of the table named "Real" below). I need to retrieve as a Measure the last value registered.
I used this simple measure to get the date, but when i try to associate the value its summarized the whole data of the day as a one unique value.
Last date = MAXX(all(Real);Real[Date_Real])
This table has two columns, one for the Date&Time and the other with the phycal variable´s value.
20/6/2019 18:15 1 570,00
20/6/2019 18:30 1 589,79
20/6/2019 18:45 1 603,33
20/6/2019 19:00 1 587,74
20/6/2019 19:15 1 583,77
20/6/2019 19:30 1 571,14
20/6/2019 19:45 1 535,50
20/6/2019 20:00 1 510,65
20/6/2019 20:15 1 519,11
20/6/2019 20:30 1 515,11
20/6/2019 20:45 1 478,35
20/6/2019 21:00 1 439,29
20/6/2019 21:15 1 394,95
20/6/2019 21:30 1 367,05
20/6/2019 21:45 1 330,58
20/6/2019 22:00 1 277,04
20/6/2019 22:15 1 224,99
20/6/2019 22:30 1 203,37
20/6/2019 22:45 1 165,15
20/6/2019 23:00 1 136,25
20/6/2019 23:15 1 111,23
20/6/2019 23:30 1 075,20
20/6/2019 23:45 1 052,30
21/6/2019 00:00 1 035,65
21/6/2019 01:00 685,07
21/6/2019 02:00 640,67
21/6/2019 03:00 622,84
21/6/2019 04:00 657,78
21/6/2019 05:00 749,99
21/6/2019 06:00 767,98
21/6/2019 07:00 766,20
Solved! Go to Solution.
Hi @galvar1975 ,
You can generate a measure as follow.
value for latest date/time = CALCULATE ( SUM ( Real[Value_Real] ), FILTER ( ALLSELECTED ( Real ), Real[Date_Real] = CALCULATE ( MAX ( Real[Date_Real] ), ALLSELECTED ( Real ) ) ) )
Best regards,
Yuliana Gu
Hi @galvar1975 ,
You can generate a measure as follow.
value for latest date/time = CALCULATE ( SUM ( Real[Value_Real] ), FILTER ( ALLSELECTED ( Real ), Real[Date_Real] = CALCULATE ( MAX ( Real[Date_Real] ), ALLSELECTED ( Real ) ) ) )
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 |
---|---|
114 | |
100 | |
81 | |
70 | |
62 |
User | Count |
---|---|
148 | |
116 | |
104 | |
90 | |
65 |