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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
blueunicorn
Regular Visitor

Date column produces blank when used as a slicer dropdown

Hi - I have two tables A and B. Table A has a date column. I created table B using Distinct('A'[Datecolumn]) to use it with some other measures. Now, when I use it as a slicer, I get a blank. But there are no blanks in the table. Please help me remove the blank without suppressing it manually. Thanks!

3 REPLIES 3
Poojara_D12
Super User
Super User

Hi @blueunicorn 

To remove the blank value from your slicer:

  1. Create a new table excluding blanks:
    DAX: DateTable = DISTINCT(FILTER('A', NOT(ISBLANK('A'[DateColumn]))))

  2. Use DateTable in your slicer instead of the original table.

This will ensure the slicer doesn't include any blanks automatically.

 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Poojara - Proud to be a Super User
Data Analyst | MSBI Developer | Power BI Consultant
Consider Subscribing my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS 

Poojara_D12_0-1737348316443.png

 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos"

Kind Regards,
Poojara - Proud to be a Super User
Data Analyst | MSBI Developer | Power BI Consultant
Consider Subscribing my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS
Anonymous
Not applicable

Hi @blueunicorn 

 

Thanks a lot for OwenAuger's prompt reply.

 

OwenAuger makes sense, there may be an inappropriate relationship between the tables. Please make sure:

 

Make sure the relationship between table A and table B is set correctly. Make sure there is a one-to-many or many-to-one relationship between the date column of table A and the date column of table B.

 

vnuocmsft_0-1737345183711.png

 

And, you can modify the code to:

 

TableB = FILTER(DISTINCT('TableA'[Date]), NOT(ISBLANK('TableA'[Date])))

 

Make sure there are no null values ​​in table A that affect table B.

 

If you're still having problems, provide some dummy data and the desired outcome. It is best presented in the form of a table.

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

OwenAuger
Super User
Super User

Hi @blueunicorn 

It sounds like an automatic blank row has been added to Table B.

This happens if Table B is on the 1-side of a strong relationship with values in the column of the table on the other side of the realtionship that do not exist in Table B's Date column, making it an "invalid relationship" (see here).

 

Are there in fact any relationships involving Table B (presumably with Table A and any others)? And do the values in the related columns all exist in Table B?

 

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.