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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
sainig546
Frequent Visitor

filter comparing two column

hi is it possible to use a filter in filter pane where created date = updated date

since filter accepts only columns how can we do this

 

2 ACCEPTED SOLUTIONS
Pragati11
Super User
Super User

Hi @sainig546 ,

 

Yes you can achieve this by creating a flag as a calculated column and use it in your filter pane.

I am assuming you have  created date column in your data in Power BI, then you can create this clculated column using DAX:

date_comparison_flag =
IF ( yourtablename[Created Date] = TODAY (), 1, 0 )

 Make sure to replace the yourtablename[Created Date] this with your table name and column name.

 

This above calculation will give you a column date_comparison_flag with values 0/1.

Then use this column in the filter pane to select date_comparison_flag = 1.

 

This will filter your report page where created date = today's date.

 

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

Samarth_18
Community Champion
Community Champion

Hi @sainig546 ,

 

You can create a measure like below and use it as filter in your visual:-

 

 

Measure = COUNTROWS(FILTER('Table','Table'[created date] = 'Table'[updated date]))

 

Samarth_18_0-1641992714521.png

 

Thanks,

Samarth

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

2 REPLIES 2
Samarth_18
Community Champion
Community Champion

Hi @sainig546 ,

 

You can create a measure like below and use it as filter in your visual:-

 

 

Measure = COUNTROWS(FILTER('Table','Table'[created date] = 'Table'[updated date]))

 

Samarth_18_0-1641992714521.png

 

Thanks,

Samarth

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Pragati11
Super User
Super User

Hi @sainig546 ,

 

Yes you can achieve this by creating a flag as a calculated column and use it in your filter pane.

I am assuming you have  created date column in your data in Power BI, then you can create this clculated column using DAX:

date_comparison_flag =
IF ( yourtablename[Created Date] = TODAY (), 1, 0 )

 Make sure to replace the yourtablename[Created Date] this with your table name and column name.

 

This above calculation will give you a column date_comparison_flag with values 0/1.

Then use this column in the filter pane to select date_comparison_flag = 1.

 

This will filter your report page where created date = today's date.

 

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors