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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Bastienlin_
Helper II
Helper II

Dynamical dimension table depending on the date selected

Hello,

I have an issue where my dimension table is changing over the years. What I tried to do to deal with it, is to add a date to all my tables so that I can filter the right lines in my dimension table.
My goal is to have a dynamical dimension table that is changing depending on the date.
Here is a sample of my data:
I have no "Orange Juice" in 2022 in my ref_Company because it isn't in our scope anymore, but it is still here in my fact table (Price):
Ref_Company(Dimension table):

Bastienlin__0-1651707225060.png

 

Price(Fact table):

Bastienlin__1-1651707238845.png


What i expected is that, when I select 2022, we can not see the Orange_index on my visual. But here is what I have:

Bastienlin__0-1651707978732.png

 

It seems that it still manage to get the Orange_Index from 2021 in my Ref_Company. So my ref_Company isn't dynamic.
Do you have a solution to have a dynamical Ref_Company, depending on the date for example or maybe another idea ? (Note that I have a lot of facts table like my Price table, so I can not just delete the lines about Orange Juice)

Pbix link:
https://www.dropbox.com/s/t58ujxuo1ppl2bm/Dynamic%20dimension%20table%20depending%20on%20the%20Date....

Thank you very much for your help !

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi,

Double clicking the file should work.  If not, then you are probably using an older version of PBI Desktop.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hello @Ashish_Mathur  ! Thank you for your answer, but could you please explain me how can I open it on PBI ? Because what I see when I extracted your file is this:

Bastienlin__0-1651738102976.png

 

amitchandak
Super User
Super User

@Bastienlin_ , one of the way to deal with this you have concatenated key in both tables and you join on those

 

Key = [Index] & "-" & [year]

 

or

 

Key = [Index] & "-" & year([Date])

 

 

Other wise you get the columns which are not joined

 

measure   = //assume joined on index

var _tab = summarize(allselected(Table1), Tabel1[Year])

return

calculate(sum(Table2[price]) , filter(Table2, Tabl2[Year] in _tab) )

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

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