Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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])
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
12 | |
11 | |
10 | |
9 |
User | Count |
---|---|
18 | |
14 | |
14 | |
13 | |
12 |