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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
IliasKatsis
Helper I
Helper I

Filter a Table with a date slice(coming from a calendar table) with no relationship between them

Hello everyone,

 

I have this table 

IliasKatsis_0-1667380838298.png

coming from a big fact table which contains dates (Start & end date of campaing). This table concerns aggragated data.

My dashboard also have this date slicer 

IliasKatsis_1-1667381413216.png

which is coming from a date table and have no relationship with the fact table.

 

How is it possible to filter the aggragated table with the slicer dates by using a measure a DAX?

 

Thank you!

 

3 REPLIES 3
v-yueyunzh-msft
Community Support
Community Support

Hi , @IliasKatsis 

You can use the FILTER() function, and the ALLSELECTED() function to filter your fact table like this:

var _min_slicer = MIN('Date'[Date])

var _max_slicer = MAX('Date'[Date])

var _t=FILTER(ALLSELECTED('fact table'), 'fact table'[Date] >=_min_slicer && 'fact table'[Date] <= _max_slicer )

return _t

 

Then you can get the table you want, and then you also can use MAXX() and MINX() and so on functions you want to get the value.

 

Best Regards,

Aniya Zhang

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

 

PhilipTreacy
Super User
Super User

Hi @IliasKatsis 

 

Why aren't you connecting the date table to the fact table so you can filter with the slicer?  This is the way PBI is intended to work.  Looks like you are making things hard for yourself??

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Thanks for your answer but i want to achieve a spesific type of filtering now and the table connection does not help me
Thank you!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.