Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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 |
---|---|
109 | |
102 | |
86 | |
77 | |
69 |
User | Count |
---|---|
120 | |
110 | |
95 | |
82 | |
77 |