The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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:
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
33 | |
14 | |
11 | |
10 | |
8 |