Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi all,
Please see below the following example:
I have a slicer on column period (a month has two periods in this case). If i make a selection on a period i need to see the sales for that specific period only, but i need the budget number over the two periods (month) combined.Somehow i need to filter the budget on a month number based on my first selection.
So in this case i should see the sales: 14 budget: 35
| Period | Sales | Budget | Month | Year |
| 012018P1 | 10 | 15 | 1 | 2018 |
| 012018P2 | 15 | 20 | 1 | 2018 |
| 022018P1 | 14 | 22 | 2 | 2018 |
| 022018P2 | 14 | 13 | 2 | 2018 |
| 032018P1 | 13 | 15 | 3 | 2018 |
| 032018P2 | 21 | 15 | 3 | 2018 |
| 042018P1 | 11 | 10 | 4 | 2018 |
| 042018P2 | 19 | 20 | 4 | 2018 |
Is it possible to achieve this with a dax formule after i have filtered the dataset based on one period?
Thanks!
Solved! Go to Solution.
May be a MEASURE like this for Budget
Budget Sum =
VAR myperiod =
SELECTEDVALUE ( Table1[Month ] )
RETURN
CALCULATE (
SUM ( Table1[Budget] ),
Table1[Month ] = myperiod,
ALL ( Table1[Period] )
)
May be a MEASURE like this for Budget
Budget Sum =
VAR myperiod =
SELECTEDVALUE ( Table1[Month ] )
RETURN
CALCULATE (
SUM ( Table1[Budget] ),
Table1[Month ] = myperiod,
ALL ( Table1[Period] )
)
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 74 | |
| 70 | |
| 39 | |
| 35 | |
| 23 |