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.
After implementing a solution with Power Query, a table, VBA and some other hacks I have a quite robus implementation to achieve following result.
However, if I would like to aquire the same result with Power Pivot / datamodel / DAX I struggle with the month filter.
The user should be able to select a month till which the actual are presented (limited to available data). However, planning should remain visible for the whole year.
If I implement a month filter, however, the graph gets narrowed down to the selected month.
I have tried to duplicate the calendar table, struggled with ALL, ALLEXCEPT but did not found a feasible result.
Advice as in:
with two tables gives an "Relationships might be needed" error.
Who can point me in the right direction?
Solved! Go to Solution.
Hi @significant,
You should drag the [Month-Year] column from actual data table onto chart axis, rather than from calendar table.
Regards,
Yuliana Gu
Hi there, in this video this subject is well explained :
steps : creation a copy of calendar > inactive realtionship > measure with DATESINPERIOD
Hi @significant,
You should drag the [Month-Year] column from actual data table onto chart axis, rather than from calendar table.
Regards,
Yuliana Gu
Super, thanks.
My measure now reads:
hoursRol:=CALCULATE(SUM(logData[hours]), DATESBETWEEN('Calendar'[Date],STARTOFYEAR('Calendar'[Date]),max('Calendar'[Date])))
edit:
maybe you can provide an insight if we look at the days of a month specifically. With above approach, the rows always show till value 31. This of course only holds true in particular months.
How can it be arranged that the number of rows corresponds to the number of days of the selected month.
In my point of view, the reason for showing till 31 is due the fact that the actual data table is not filtered for months. Any suggestion...
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 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |