Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
I am trying to create a columnd to show me prior month status but because my months have gaps in them I am getting blanks
I have the following data. The first 3 are in my dataset and I am trying to create the 4th
Report Month | Customer | Status | Prior Month Status |
Jan | ABC | Red | |
Feb | ABC | Red | Red |
March | ABC | Yellow | Red |
Apr | ABC | Yellow | Yellow |
May | ABC | Green | Yellow |
Jan | DEF | Red | |
Feb | DEF | Yellow | Red |
May | DEF | Green | Yellow |
Jan | GHI | Red | |
March | GHI | Yellow | Red |
May | GHI | Green | Yellow |
Solved! Go to Solution.
Please try
Prior Month Status =
MAXX (
TOPN (
1,
FILTER (
CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[Customer] ) ),
'Table'[Month] < EARLIER ( 'Table'[Month] )
),
'Table'[Month]
),
'Table'[Status]
)
it's date type
Please try
Prior Month Status =
MAXX (
TOPN (
1,
FILTER (
CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[Customer] ) ),
'Table'[Month] < EARLIER ( 'Table'[Month] )
),
'Table'[Month]
),
'Table'[Status]
)
omg this worked THANK YOU
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
24 | |
21 | |
18 | |
14 | |
11 |
User | Count |
---|---|
43 | |
35 | |
25 | |
22 | |
22 |