Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
sokatenaj
Advocate II
Advocate II

Visual just stopped working...

Hi Folks,

 

The same PeopleSoft query runs every day and there has not been any change to it. The "Birth Date" field in that query is a Date field. When I opened my Power BI file today to refresh the data, I got this error on a visual:

For Forum.JPG

  I have not made one change to the visual, Power BI file, or PeopleSoft feed in two weeks and this just magically popped up today. 

 

I have a calculated colum giving me the retirement date which is:

 

Retirement Date =
SWITCH (
TRUE (),
YEAR ( 'Active EEs'[Birth Date]) >= 1937
&& YEAR ( 'Active EEs'[Birth Date] ) <= 1942,
(
DATE ( ( YEAR ( [Birth Date] ) + 65 ), MONTH ( 'Active EEs'[Birth Date] ), DAY ( 'Active EEs'[Birth Date] ) )
), YEAR ( 'Active EEs'[Birth Date] ) >= 1942
&& YEAR ( 'Active EEs'[Birth Date] ) <= 1959,
(
DATE ( ( YEAR ( [Birth Date] ) + 66 ), MONTH ( 'Active EEs'[Birth Date] ), DAY ( 'Active EEs'[Birth Date] ) )
),
(
DATE ( ( YEAR ( [Birth Date] ) + 67 ), MONTH ( 'Active EEs'[Birth Date] ), DAY ( 'Active EEs'[Birth Date] ) )
)
)

 

My retirement eligibility calculated column is also messed up because of the above measure. The measure for retirement eligibility is:

 

Retirement Eligibility = SWITCH ( TRUE (), TODAY () > 'Active EEs'[Retirement Date], "Over retirement", 'Active EEs'[Retirement Date] <= DATE (( YEAR ( TODAY () ) + 3), MONTH ( TODAY () ), DAY ( TODAY () ) ), "Within 3 Years", 'Active EEs'[Retirement Date] <= DATE (( YEAR ( TODAY () ) + 5), MONTH ( TODAY () ), DAY ( TODAY () ) ), "Within 5 Years", "Not Eligible" )

 

What the heck would make this just stop working? All I do is click "refresh" and publish. 

 

Any help would be appreciated! Many thanks!!!

1 ACCEPTED SOLUTION
sokatenaj
Advocate II
Advocate II

Nevermind. I found out what the error was. We have someone that started working that was born in 1922 and my measure started at 1937 so it didn't know what to do...

View solution in original post

1 REPLY 1
sokatenaj
Advocate II
Advocate II

Nevermind. I found out what the error was. We have someone that started working that was born in 1922 and my measure started at 1937 so it didn't know what to do...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.