Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Solved! Go to Solution.
Hi,
Please try this:
VAR Year = MAX(Date_V[Year Number])
RETURN
CALCULATE(
"Your Sum Measure",
REMOVEFILTERS(Date_V),
DATESBETWEEN(Date_V[Date],DATE(Year -1,1,1),DATE(Year -1,12,31))
)
Proud to be a Super User!
Hi,
Please try this:
VAR Year = MAX(Date_V[Year Number])
RETURN
CALCULATE(
"Your Sum Measure",
REMOVEFILTERS(Date_V),
DATESBETWEEN(Date_V[Date],DATE(Year -1,1,1),DATE(Year -1,12,31))
)
Proud to be a Super User!
It works perfectly! Thanks a lot.
Hi @HLVW ,
Do you intend to show the value for each past x months as well and not just the correct selected month? You will need a disconnected dates/calendar table for that as using the one related to your fact table will just show what is selected. Please see attached sample pbix.
Thanks a lot for your reply. I would like a matrix visual as below, where the right column is full last year in spite of filters. I already have a date table, but this is connected...
User | Count |
---|---|
89 | |
82 | |
51 | |
40 | |
35 |