The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I would like to compare (calculate change in percentage) two previous months with data. Problem is that there is no data for every month. For example (please look the picture) in line 9 I would like to compare September and December, in line 5 I need to compare October and November and so on. What kind of dax formula I need to do this?
BR,
TuHa
@Anonymous , Try a measure like below, make sure you are using date table
new column =
var _max = maxx(allselected(Date), Date[Date]< min(Date[Date]))
return
calculate(Sum(Table[Values]), filter(allselected(Date), eomonth(Date[Date],0) = eomonth(_max,0)))
Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
User | Count |
---|---|
27 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
7 | |
6 |