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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
chulpanvl
Helper I
Helper I

dimension tables contain textual +date columns - how to make a relationship with fact and calendar

chulpanvl_0-1661237384124.png

Hi! my current data model is presented above. However, I need to introduce a date column to the dimension tables and make a relationship with calendar table as well. If I do so, I will end up with many-to-many relationship of dimension tables with calendar and dimension tables with fact table.  What is the best way to work with such cases? 

 

Here you can find a sample data and board to play with.

2 REPLIES 2
amitchandak
Super User
Super User

@chulpanvl , Do not create a relationship if you just want to filter the slicer of other dimensions using dates

 

You can create a measure like this using a dim table and date in it and use it in the visual level filter and check for not blank

 

new measure =
var _max = maxx(allselected(Date),Date[Date])
var _min = minx(allselected(Date),Date[Date])
return
Countrows(  filter('dim1', 'dim1'[Date] >=_min && 'dim1'[Date] <=_max))

 

How to filter the slicer of a disconnected table: https://youtu.be/cV5WfaQt6C8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak thank you for your response!

In the end I want to create a measure based on my fact table which is filtered by dimension table (see a  screen) which will also take into account differences in groups of items from year to year.

I explained my case in more detail in this topic.

 

chulpanvl_0-1661349153892.png

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors