Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi, I'm trying to get the text value from the previous month in the following table, which is about trying to see the employee transfer from which department. Does anyone know how to get it?
Thank you in advance!!
Solved! Go to Solution.
@yyyyyyvonne Maybe:
Previous Month Column =
VAR __Date = [Date]
VAR __Name = [Name]
VAR __PreviousDate = MAXX( FILTER('Table', [Name] = __Name && [Date] < __Date ), [Date] )
VAR __PreviousDept = MAXX( FILTER('Table', [Name] = __Name && [Date] = __Date ), [Department] )
RETURN
__PreviousDept
This is actually the last example in this video:
@yyyyyyvonne Maybe:
Previous Month Column =
VAR __Date = [Date]
VAR __Name = [Name]
VAR __PreviousDate = MAXX( FILTER('Table', [Name] = __Name && [Date] < __Date ), [Date] )
VAR __PreviousDept = MAXX( FILTER('Table', [Name] = __Name && [Date] = __Date ), [Department] )
RETURN
__PreviousDept
This is actually the last example in this video:
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
25 | |
10 | |
7 | |
6 | |
6 |
User | Count |
---|---|
30 | |
11 | |
11 | |
10 | |
6 |