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
i have this table :
I used this formula to take the previous row
// This should be the basic measure.
[Total Value] = SUM ( 'Fact Risk Decision Flow'[grd_granted_amount_value_euro] )
// PP = previous period
// Periods should have their own dedicated dimension.
// No slicing on fact tables should ever be performed.
// All columns in fact tables must be hidden. Only
// dimensions should be exposed and used for slicing.
[PP Value] =
var __onePeriodVisible = HASONEVALUE( Periods[Period] )
var __period = selectedvalue( Periods[Period] )
var __prevPeriod = __period - 1
var __result =
CALCULATE
[Total Value],
Periods[Period] = __prevPeriod,
REMOVEFILTERS( Periods )
)
return
if( __onePeriodVisible, __result )
Best
D
Thanks for your reply but it's not exactly the solution that i need 😉
Indeed the period could be 2 years ago and not only -1.
I'm using SSAS 2016 so, REMOVEFILTERS and SELECTEDVALUES not works but i replace it with equivalent formula.
Thank you by advance
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 |
---|---|
47 | |
26 | |
19 | |
14 | |
10 |
User | Count |
---|---|
58 | |
50 | |
44 | |
19 | |
19 |