March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi Experts
See sample PBIX, If you scroll down to Dec 2020 I am not able to compare the Percenatge Difference against Jan 21 - But i can compare the in Year Month Differences ie.
Jan 2021 v Feb 2021
how do i amend the current measure to allow me to compare month on month % difference whlist taking into account the year too.
Sample
https://www.dropbox.com/s/ymuu7z7gnhnzd3f/Mtnovermtn.pbix?dl=0
Solved! Go to Solution.
@Anonymous , Try a measure like
total sales same week# previous month =
var _max = Max(Dates[Date])
var _date = date(year(_max), month(_max)-1, Day(_max))
VAR currentyear = Year(_date)
VAR currentmonth = Month(_date)
VAR currentweeknumber = MAX(Dates[Week of Month])
RETURN
CALCULATE([total sales], FILTER( ALL(Dates), Dates[Year] = currentyear && Dates[MonthNo] = currentmonth && Dates[Week of Month] = currentweeknumber))
@Anonymous , Try a measure like
total sales same week# previous month =
var _max = Max(Dates[Date])
var _date = date(year(_max), month(_max)-1, Day(_max))
VAR currentyear = Year(_date)
VAR currentmonth = Month(_date)
VAR currentweeknumber = MAX(Dates[Week of Month])
RETURN
CALCULATE([total sales], FILTER( ALL(Dates), Dates[Year] = currentyear && Dates[MonthNo] = currentmonth && Dates[Week of Month] = currentweeknumber))
Hi Amit - getting error on this line
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
126 | |
85 | |
69 | |
53 | |
44 |
User | Count |
---|---|
202 | |
106 | |
100 | |
64 | |
56 |