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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Use different date filter on one table

Hi all,

I hope someone can help me because I think I tried nearly everything but I couldn't solve my problem.

 

The situation is as followed.

I have one main table containing employee details for 2 years. I have corporate titel, date, names etc in the table.

I want to build a dashboard, where the user can compare the corporate title distribution for two different dates. For that I created two new tables. Each of them contains distinct date values from the main table. I named the new tables Date 1 and Date 2. I created a 1:n  relationship between Date 1 and main table. The same for Date 2 table. 

Then I created two charts showing the headcount per corporate title base on the main table. One chart is filtered by a slicer based on Date 1. The second chart is filtered by a slicer on Date 2.

So far so good.

Now comes the problem.

I want to provide the employee detail in one table. 

If the user clicks on 'MD' in chart one and this chart is filtered on lets say 01.2023 I want the table to be filtered on only MD's in 01.2023.

If the user clicks on 'VP' in chart two which is filtered on 07.2022 I want the table to be filtered on only VP's for 07.2022.

I created new measures where I tried to figure out which date is filtered and use that as a filter on my table. 

The problem is, that the result in the table is always the date in Date 1.

 

I tried another solution with synchronizing slicers but in that case the result is, that for the first selection it works, but as soon as I select another date, the table tries to filter ont he already filtered results which is NULL. I tried to include removefilters in my DAX code but it's not working.

 

Does anyone have a clever idea how I can solve this problem?

I included a screenshot of the dashboard if that helps.

 

Thanks in advance!!

 

Cheers

Dilek

dashboard .jpg

3 REPLIES 3
parry2k
Super User
Super User

@Anonymous maybe you can create a dummy data in excel and use that in the Power BI and share that one.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@Anonymous I probably have some ideas, if possible, share pbix using one drive/google drive and make sure to remove sensitive information before sharing. 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Hi parry2k,

 

Unfortunately all of that is blocked by the firewall. I'm working on my company laptop. I also can't save it on an USB to do it via my personel laptop. 
If you could share your idea here that would be great! 🙂

 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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