Forum Discussion
Compare values
- Anonymous2 years ago
Thanks for the reply fromfahadqadir3, please allow me to provide another insight:
Regarding the issue you raised, my solution is as follows:
1.First I have created the following table and the column names and data are the data you have given:
2. Below are the measure I've created for your needs:
Measure = var predate=SUM('Table'[date])-1 var prevalue=CALCULATE(SUM('Table'[values]),FILTER(ALLSELECTED('Table'),'Table'[date]=predate&&'Table'[time]=MAX('Table'[time]))) RETURN SUM('Table'[values])-prevalue3.Here's my final result, which I hope meets your requirements.
Please find the attached pbix relevant to the case.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hallo, zunächst einmal vielen Dank. Ich habe das Datum 07.01.2024 in einer Spalte, dann 07.02.2024 usw. In der nächsten Spalte steht dann die Uhrzeit. Ab 00:00:00 - 23:00:00. In der nächsten Spalte befinden sich dann die Werte. In Ihrem Screenshot liegen die Tage und Uhrzeiten nebeneinander. Muss ich es so machen oder gibt es eine andere Möglichkeit, innerhalb meiner Struktur zu bleiben? Zum Beispiel möchte ich den 07/01/2024 08:00 Wert mit dem 07/02/2024 08:00 Wert vergleichen oder die Differenz anzeigen.
Thanks for the reply fromfahadqadir3, please allow me to provide another insight:
Regarding the issue you raised, my solution is as follows:
1.First I have created the following table and the column names and data are the data you have given:
2. Below are the measure I've created for your needs:
Measure =
var predate=SUM('Table'[date])-1
var prevalue=CALCULATE(SUM('Table'[values]),FILTER(ALLSELECTED('Table'),'Table'[date]=predate&&'Table'[time]=MAX('Table'[time])))
RETURN SUM('Table'[values])-prevalue
3.Here's my final result, which I hope meets your requirements.
Please find the attached pbix relevant to the case.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.