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.
So I have a column for years of experience using DATEDIFF(). The values that it returns are correct; however, when I apply a filter to the table, all values are filtered except the "years of experience column."
Here is my code for the column:
var end_dt = 'Pro - Dim Professional'[EmploymentEndDate].[Date]
var recent_hire_dt = 'Pro - Dim Professional'[Start Date].[Date]
RETURN
IF(ISBLANK(end_dt), DATEDIFF(recent_hire_dt, NOW(), YEAR),
IF(recent_hire_dt > end_dt, DATEDIFF(recent_hire_dt, NOW(), YEAR),
DATEDIFF(recent_hire_dt, end_dt, YEAR)))
Here is a screenshot of my problem after the filter is applied.
Is this perhaps because not all fields in the table (like a person's name) is a column and a calculated value?
Solved! Go to Solution.
Hi @sjrrkb123
set inactive parameter "Show items with no data" in fields settings Visualization pane
and of courcse, check your data, it looks like you have rows with non-empty start date but empty "Util", "DL Hours" or other columns
Hi @sjrrkb123
set inactive parameter "Show items with no data" in fields settings Visualization pane
and of courcse, check your data, it looks like you have rows with non-empty start date but empty "Util", "DL Hours" or other columns
Data was the issue, I forgot I had done some fiddling with the start date column prior to this and it was including values it shouldnt.
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 |
---|---|
112 | |
100 | |
76 | |
74 | |
49 |
User | Count |
---|---|
145 | |
108 | |
107 | |
89 | |
61 |