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! Learn more

Reply
Malsk1_1
Helper II
Helper II

Adding a Text value in a date filter

Hi,

 

I have 2 tables

Table 1 Table 2
Baseline Date Baseline Date
01/01/2021 13/10/2021
01/02/2021  
01/03/2021  
01/04/2021  
01/05/2021  
01/06/2021  
01/07/2021  
01/08/2021  

 

I have merged the tables and therefore have a complete list of dates covering them both, however when i create a date picker filter for the merged dataset, i would like to show all dates from the combined list, however for the date that has come from Table 2 I would like to show it with 13/10/2021 Flash - as below:

 

Date Picker
01/01/2021
01/02/2021
01/03/2021
01/04/2021
01/05/2021
01/06/2021
01/07/2021
01/08/2021
13/10/2021 (Flash)

 

How can i do this?

1 ACCEPTED SOLUTION

Hi @Malsk1_1 ,

 

So you don't have a date column with all those values.

Your query says, you have merged the tables and got the dates in place, so I got confused.

 

Suppose you have following 2 tables:

Table1

Pragati11_0-1634140133679.png

 

Table2

Pragati11_7-1634140660535.png

Make sure datatype of both Date columns in both tables is set to TEXT.

 

In Power Query editor, click on Table2 and add a custom column:

Pragati11_4-1634140450769.png

Then add following formula:

Pragati11_6-1634140639388.png

 

You will get the following:

Pragati11_8-1634140712939.png

Now I will remove previous column from Table2 and just keep the new caluclated column as follows:

Pragati11_10-1634140895748.png

 

Now in both Table1 and Table2, I am giving name to the columns as Date as this will help me in next steps and their datatype as Text.

In Power Query editor, you will have to append them together. Make sure the column name is same in both the tables.

Click on Table1 on the left and on the top ribbon select Append Queries as shown:

Pragati11_3-1634140355606.png

 

Then the following window:

Pragati11_9-1634140830083.png

You end up the required output:

Pragati11_11-1634140921471.png

 Now add an index column to this table, to make sure your slicer displays data in right order:

Pragati11_13-1634141027647.png

 

Then apply your changes. Go to Data tab in Power BI and sort your Date column by Index column:

Pragati11_14-1634141114683.png

You will end up with slicer in the required format:

Pragati11_15-1634141159291.png

 

Thanks,

Pragati

 

 

 

 

 

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

7 REPLIES 7
Pragati11
Super User
Super User

Hi @Malsk1_1 ,

 

I am assuming your new Date column with merged dates is of TEXT datatype.

In that case just create a slicer, move this new Date column and select dropdown type on the slicer.

Share some screenshot here, as it can help us what you are seeing at your end? 🙂

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

@Pragati11  Both are Date columns but in the date picker i am assuming they would need to be in text due to the text at the end of the date from table 2.

@Pragati11 the date filter should display like this :

Malsk1_1_1-1634138799580.png

 

Hi @Malsk1_1 ,

 

Sorry I didn't understand. 

Is the slicer not displaying values as in the screenshot? You already have column with all the values right?

Are you having issues with displaying them in an order? If yes, then do one thing.

Go to Power Query Editor and add an Index column to your table. Something like below:

Pragati11_0-1634139671511.png

Then apply your changes. Go to Data tab in Power BI and sort your textDate column by Index column:

Pragati11_1-1634139763560.png

Once you do that, you will get following:

Pragati11_2-1634139796177.png

Now create the slicer and you will get the way you want it:

Pragati11_3-1634139826117.png

Let me know if this works.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

HI @Malsk1_1 ,

 

Yes your columns need to be text type now as one of the values have a text with date value.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

@Pragati11 @I am assuming that I need to create a calculated field to say something like this.

 

if max date from table 2 does not exist in table 1, then show the max date in table 2 & Flash else show the dates from table 1.

 

how can I write this?

Hi @Malsk1_1 ,

 

So you don't have a date column with all those values.

Your query says, you have merged the tables and got the dates in place, so I got confused.

 

Suppose you have following 2 tables:

Table1

Pragati11_0-1634140133679.png

 

Table2

Pragati11_7-1634140660535.png

Make sure datatype of both Date columns in both tables is set to TEXT.

 

In Power Query editor, click on Table2 and add a custom column:

Pragati11_4-1634140450769.png

Then add following formula:

Pragati11_6-1634140639388.png

 

You will get the following:

Pragati11_8-1634140712939.png

Now I will remove previous column from Table2 and just keep the new caluclated column as follows:

Pragati11_10-1634140895748.png

 

Now in both Table1 and Table2, I am giving name to the columns as Date as this will help me in next steps and their datatype as Text.

In Power Query editor, you will have to append them together. Make sure the column name is same in both the tables.

Click on Table1 on the left and on the top ribbon select Append Queries as shown:

Pragati11_3-1634140355606.png

 

Then the following window:

Pragati11_9-1634140830083.png

You end up the required output:

Pragati11_11-1634140921471.png

 Now add an index column to this table, to make sure your slicer displays data in right order:

Pragati11_13-1634141027647.png

 

Then apply your changes. Go to Data tab in Power BI and sort your Date column by Index column:

Pragati11_14-1634141114683.png

You will end up with slicer in the required format:

Pragati11_15-1634141159291.png

 

Thanks,

Pragati

 

 

 

 

 

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

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.