Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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())
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
95 | |
77 | |
65 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |