Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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:
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
25 | |
19 | |
18 | |
18 | |
15 |
User | Count |
---|---|
39 | |
22 | |
18 | |
15 | |
12 |