Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. 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.
@Anonymous
Please try
Prior Month Status =
MAXX (
TOPN (
1,
FILTER (
CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[Customer] ) ),
'Table'[Month] < EARLIER ( 'Table'[Month] )
),
'Table'[Month]
),
'Table'[Status]
)
Hi @Anonymous
month is text or date data type?
it's date type
@Anonymous
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
Check out the May 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
17 | |
14 | |
14 | |
12 | |
10 |
User | Count |
---|---|
11 | |
10 | |
8 | |
7 | |
6 |