Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
18 | |
15 | |
14 | |
11 | |
8 |
User | Count |
---|---|
24 | |
19 | |
12 | |
11 | |
10 |