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.
Hello,
I have the following dateslicer that with the current selection yields the graph below. This has one dimensions in x-axis, which are time and product, I have in the visual filter a top 1 by date to ensure it only brings me the last month of the selection on the slicer
However, if I selected the following date, it yields the following, the last dates are all in November in both slicers, my idea is for the for example to return the same output as the one below, which is the aggreggation of the month, this why independly of the the day selected in the dateslicer, it would always bring the overall of the month.
My current formula is:
CALCULATE(SUM(Product[volume]),ALL('calendar'[CalendarDate]))
I have also tried ALL('calendar'[Month]))) but is the same thing
The axis in the graphs are from a calculated column in the fact table
Solved! Go to Solution.
Hi @Anonymous,
Could you try using the formula below to see if it works in your scenario?
= VAR y = MAX ( 'calendar'[Year] ) VAR m = MAX ( 'calendar'[Month] ) RETURN CALCULATE ( SUM ( Product[volume] ), FILTER ( ALL ( 'calendar' ), 'calendar'[Year] = y && 'calendar'[Month] = m ) )
Regards
Hi @Anonymous,
Could you try using the formula below to see if it works in your scenario?
= VAR y = MAX ( 'calendar'[Year] ) VAR m = MAX ( 'calendar'[Month] ) RETURN CALCULATE ( SUM ( Product[volume] ), FILTER ( ALL ( 'calendar' ), 'calendar'[Year] = y && 'calendar'[Month] = m ) )
Regards
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 |
---|---|
108 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |