Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I'm trying to accomplish a seemingly easy aggregation but just can't wrap my head around how exactly. I have 3 tables:
What I'm ultimately looking for is the sum of all prices before each Monday in the above list.
The chart I want to build looks something like this, only with the Mondays on the x-axis.
Can someone point me in the right direction on how to do this? This is the PBIX Sample.
TIA Yves
Solved! Go to Solution.
I finally figured it out. In case anyone runs into the same problem, here's what I did:
I had to remove the connection between Prices[Date] and DimDate[Date]:
After that the measures, I had in place finally worked together:
VAR _maxdate = [SelectedDate]
RETURN CALCULATE( SELECTEDVALUE(Prices[Price]), Prices[Date] < _maxdate )
The updated PBIX can be found HERE and now looks like this:
Regards,
Yves
I finally figured it out. In case anyone runs into the same problem, here's what I did:
I had to remove the connection between Prices[Date] and DimDate[Date]:
After that the measures, I had in place finally worked together:
VAR _maxdate = [SelectedDate]
RETURN CALCULATE( SELECTEDVALUE(Prices[Price]), Prices[Date] < _maxdate )
The updated PBIX can be found HERE and now looks like this:
Regards,
Yves
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |