Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Main Scope
The main idea is to create a price variance between the selected reports, within the selected time frames.
The user of the dashboard will:
1) Select the current budget and period
2) Select the comparing budget and period
Data Setup
The sample dataset contains of the following data:
The Main Data:
- Reports (Categorical variable for the different budget)
- DimDate (Date of expected invoicing)
- Net Sales
- Units
Besides, I created two seperate tables that are not connected to the Main Data:
Solved! Go to Solution.
@Anonymous , Please refer these measures set 1- Slicer 1, Sclicer 3 and Set 2 - Slicer 2 and Slicer 4
Set 1 =
var _max = maxx(allselected(Slicer3), Slicer3[Date])
var _min = minx(allselected(Slicer3), Slicer3[Date])
return
CALCULATE(sum('Total Data Table'[Invoiced Units]), filter('Total Data Table','Total Data Table'[Report] in allselected(slicer1[Report])
&& 'Total Data Table'[Dimdate] >=_min && 'Total Data Table'[Dimdate] <=_max))
Set 2 =
var _max = maxx(allselected(Slicer4), Slicer4[Date])
var _min = minx(allselected(Slicer4), Slicer4[Date])
return
CALCULATE(sum('Total Data Table'[Invoiced Units]), filter('Total Data Table','Total Data Table'[Report] in allselected(slicer2[Report])
&& 'Total Data Table'[Dimdate] >=_min && 'Total Data Table'[Dimdate] <=_max))
@Anonymous , Please refer these measures set 1- Slicer 1, Sclicer 3 and Set 2 - Slicer 2 and Slicer 4
Set 1 =
var _max = maxx(allselected(Slicer3), Slicer3[Date])
var _min = minx(allselected(Slicer3), Slicer3[Date])
return
CALCULATE(sum('Total Data Table'[Invoiced Units]), filter('Total Data Table','Total Data Table'[Report] in allselected(slicer1[Report])
&& 'Total Data Table'[Dimdate] >=_min && 'Total Data Table'[Dimdate] <=_max))
Set 2 =
var _max = maxx(allselected(Slicer4), Slicer4[Date])
var _min = minx(allselected(Slicer4), Slicer4[Date])
return
CALCULATE(sum('Total Data Table'[Invoiced Units]), filter('Total Data Table','Total Data Table'[Report] in allselected(slicer2[Report])
&& 'Total Data Table'[Dimdate] >=_min && 'Total Data Table'[Dimdate] <=_max))
@amitchandak Thank you, this helped me out a lot! I created the two sets within a measure with the following formula:
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
26 | |
20 | |
18 | |
14 | |
13 |
User | Count |
---|---|
43 | |
36 | |
23 | |
22 | |
21 |