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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
olijo
Frequent Visitor

Table key in from-to form

We have metodology like this (around 500.000 rows and over 2000 met variables):
met1    rn1    1.1.2014      1.1.2028
met1    rn1    1.1.2018      1.1.2020
met1    rn2    1.1.2016      1.1.2028
met2    rn1    1.1.2016      1.1.2028
met2    rn2    1.1.2016      1.1.2028
Dates are dates when that specific rn is valid.

we have another table with amount for every rn (around 150.000.000 rows):
1.1.2014    rn1     100,8
1.1.2014    rn2     20,8
1.1.2014    rn3     36,7
1.1.2020    rn1     38,2
1.1.2020    rn2     111
1.1.2020    rn3     95,2

and I want to know how much is every met based on rn included,
for example:
1.1.2020 met1 149,2 =38,2+111
1.1.2014 met2 100,8

If it wasn't clear, please tell me to explain better, and thx in advance!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@olijo , Try a new measure like

 

Sumx (Table1, Sumx(filter(Table2, Table2[RN] = Table1[RN] && Table2[Date]>= Table1[Start Date] && Table2[Date]<= Table1[Enddate]), Table2[Value]))

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@olijo , Try a new measure like

 

Sumx (Table1, Sumx(filter(Table2, Table2[RN] = Table1[RN] && Table2[Date]>= Table1[Start Date] && Table2[Date]<= Table1[Enddate]), Table2[Value]))

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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