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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Visual not filtering if contains a certain value

Hi All,

 

This one is confusing me a lot.

 

I have built a slicer called 'Yesterday' which shows all records and values where the corresponding date is yesterdays date.

 

All other visuals are filtering bar a card visual which displays 'Annual GP' and a table which also contains 'Annual GP' however a stacked bar chart where the value is 'Annual GP' filters fine.

 

It just states 'Can't Display Visual' and the details state the below:

 

Error Message:
Cannot construct data type date, some of the arguments have values which are not valid.. The exception was raised by the IDataReader interface. Please review the error message and provider documentation for further information and corrective action.

 

Anybody come across this kind of issue before and been able to resolve it? Any ideas would be appreciated as I cannot figure out for the life of me why this isn't working.

 

It was working fine before today as well, so very confused.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi Lin,

 

Apologies, I have managed to fix it now.

 

I have to create a new column called yesterday which displays yesterdays date i.e. Today()-1 and then create a new if column which displayed if the opportunity date is yesterday or not e.g. if(date=yesterday, "Yesterday")

 

Thanks for the support.

View solution in original post

5 REPLIES 5
v-lili6-msft
Community Support
Community Support

hi  @Anonymous 

There should be something wrong in the data.

Could please share your sample pbix file for us have a test? that will be a great help.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi Lin,

 

Apologies, I have managed to fix it now.

 

I have to create a new column called yesterday which displays yesterdays date i.e. Today()-1 and then create a new if column which displayed if the opportunity date is yesterday or not e.g. if(date=yesterday, "Yesterday")

 

Thanks for the support.

hi  @Anonymous 

It's pleasant that your problem has been solved, 😁  please accept the reply as solution, that way, other community members will easily find the solution when they get same issue.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Community Champion
Community Champion

This is in the Desktop? Did you recently update? What version are you on? File | Options and settings | Options | Diagnostics.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Yes this is in desktop, I am on the latest version:

 

Version: 2.79.5768.721 64-bit (March 2020)

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors