Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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,
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 54 | |
| 47 | |
| 39 | |
| 16 | |
| 15 |
| User | Count |
|---|---|
| 83 | |
| 71 | |
| 39 | |
| 29 | |
| 27 |