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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
swapna
Frequent Visitor

How to use date filter in slicer.

Hi,

 

I have created a date dimension table using DAX.

Having another table named candidate.

Created relationship between date field of date dimension table with created date field of candidate table. relation is one-to-many with both type filter option.

Now added date field of date dimension table to a slicer and want to filter candidate table data on date basis.

But its not working.

 

Please help me , Its urgent for me.

 

Regards,

Swapna.

10 REPLIES 10
v-huizhn-msft
Employee
Employee

Hi @swapna,

As I tested, it can works fine. Could you please share your .pbix file for further analysis? We only can test and post solution closed to your requriement based on your data.

Best Regards,
Angelia

datedimension.pngCandidate TableCandidate TableRelation between candidate and Date tableRelation between candidate and Date tableEditRelation.png

 

Hi,

 

I have attached the images . 

First one is Date Dimension table.

Second one is Candidate table.

Relation window also attached.

Please let me know any more information required.

 

Regards,

Swapna.

@swapna

Can you show me the date data in the candidate table?

@vanessa

 

candidate table created_date datatype - CURRENT-TIMESTAMP

Date.png

 

Please let me know any more info you required.

 

Regards,

Swapna.

@swapna  When I first started using a date table my problem was that my slicers were using the Date field from my FACT table not my Date table.  Worth checking.

@robofski

 

In my case , slicer date is coming from date table.

 

Regards,

Swapna.

@swapna

 

Can you make sure that the slicer is targetting the grid?

Screenshot_1.pngScreenshot_2.png

 

@vanessa

 

First image desicribes when slicer and candidate data loaded.

Second image if i am applying the filter the grid becomes blank although data is present for the filtered date.

 

Regards,

Swapna.

Hi @swapna

It's weird. Please restart your PowerBi desktop and check if it works fine.

Best Regards,
Angelia

vanessa
Post Patron
Post Patron

@swapna

Can you elaborate? I have created a report with similar functionality and it is working fine.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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