Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I need create report like this style, to compare two date Sales different :
Power bi can create report like this:
our data source is simple, single fact table, Date slicer will just choose two date,
I want find the easy way to create measure for Diff and Diff%.
Is any one have good suggestion,
Thank you ahead.
Solved! Go to Solution.
@wangjuan303 , Using one slicer 2 selected date diff
diff =
var _max = maxx(allselected('Date'),'Date'[Date])
var _min = minx(allselected('Date'),'Date'[Date])
return
calculate(sum(Table[value]), filter(date, Date[Date] =_max)) - calculate(sum(Table[value]), filter(date, Date[Date] =_min))
or refer
How to use two Date/Period slicers :https://www.youtube.com/watch?v=WSeZr_-MiTg
@wangjuan303 , Using one slicer 2 selected date diff
diff =
var _max = maxx(allselected('Date'),'Date'[Date])
var _min = minx(allselected('Date'),'Date'[Date])
return
calculate(sum(Table[value]), filter(date, Date[Date] =_max)) - calculate(sum(Table[value]), filter(date, Date[Date] =_min))
or refer
How to use two Date/Period slicers :https://www.youtube.com/watch?v=WSeZr_-MiTg
Thank you so much, It is nice solution,
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
72 | |
38 | |
31 | |
26 |
User | Count |
---|---|
94 | |
50 | |
43 | |
40 | |
35 |