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 everyone, I'm having problems creating a measure that can calculate the difference between 2 dates in a slicer, i created this one but doesn't seems to work like i would want:
DELTA2 =
VAR LASTDAY = [HOY]
VAR PREVDAY = [ayer]
VAR TOODAY = CALCULATE(SUM('DATA BASE'[Tons]),'DATA BASE'[FECHA DE CAPTURA] = LASTDAY,VALUES('DATA BASE'[OP]))
VAR YESTERDAY = CALCULATE(SUM('DATA BASE'[Tons]),'DATA BASE'[FECHA DE CAPTURA] = PREVDAY,VALUES('DATA BASE'[OP]))
RETURN
TOODAY-YESTERDAY
where:
and,
my result is this:
it only kinda works with the last 2 dates, also i filtered the results of DELTA2 = 0, so it only displays the changes between days.
I would like to reach a matrix like this (whatever date i choose, will be always one day and the next):
if anyone can help me, i would really apreciatted.
How can i point to a slicer where i can select the days? instead of have to use 2 measures (today & yesterday) inside this 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 |
---|---|
41 | |
21 | |
21 | |
14 | |
13 |
User | Count |
---|---|
44 | |
32 | |
30 | |
18 | |
17 |