March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Dears,
I have two tables:
1. Total Hourly Cons (it contain hourly energy consumtion data)
2. Energy Price (it contain monthly energy price):
The scope is to add a colum in the first table that contain the price for the coresponding set of month & year, based o matching colums "date" of the first table and "month" of the second table. An many to one relationship betwen "Date" and "Month" is already established.
I've already had a try with
Column = RELATED(EnergyPrice[Price])
but it is only returning values for fixed dates (01.01.2020).
Any advice?
Later edit:
I've added in the first table an "start of month" column" and now the
Column = RELATED(EnergyPrice[Price])
is providing what i need.
Is there any other sollution?
Best regards.
Solved! Go to Solution.
@mapet , month seem to be using start date of the month
a new column in table one
maxx(filter(Table2, eomonth(Table2[Month],0) = eomonth(table1[Date],0)) , Table2[Price])
@mapet , month seem to be using start date of the month
a new column in table one
maxx(filter(Table2, eomonth(Table2[Month],0) = eomonth(table1[Date],0)) , Table2[Price])
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
12 | |
9 | |
7 |
User | Count |
---|---|
38 | |
32 | |
28 | |
12 | |
11 |