Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi guys,
I have the following measure:
the column year has the data type whole number and the two measures of total employee 2019 and total employee 2020 are created as follows:
Solved! Go to Solution.
@rsanyoto , check datatype of year once
Try like
MeasureXXX =
SWITCH( TRUE(),
VALUES(DimDate[year])= 2019, [Total Employee 2019],
VALUES(DimDate[year])= 2020, [Totaal Employee2020],
BLANK())
or
 
MeasureXXX =
SWITCH( TRUE(),
max(DimDate[year])= 2019, [Total Employee 2019],
Max(DimDate[year])= 2020, [Totaal Employee2020],
BLANK())
@rsanyoto , check datatype of year once
Try like
MeasureXXX =
SWITCH( TRUE(),
VALUES(DimDate[year])= 2019, [Total Employee 2019],
VALUES(DimDate[year])= 2020, [Totaal Employee2020],
BLANK())
or
 
MeasureXXX =
SWITCH( TRUE(),
max(DimDate[year])= 2019, [Total Employee 2019],
Max(DimDate[year])= 2020, [Totaal Employee2020],
BLANK())
 
					
				
				
			
		
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
 
            | User | Count | 
|---|---|
| 80 | |
| 49 | |
| 35 | |
| 31 | |
| 30 |