Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi all
I have a TABLE 1 as below
I build up a Dax formula to calculate the previous round as below, but it not working. Could you pls help to check?
Amt_previous round =
VAR preroundindex = SELECTEDVALUE(Table 1[Round index]) -1
RETURN
CALCULATE(Sum (Table 1[Amt]), Table 1[Round index]=preRoundselected)
Solved! Go to Solution.
Hi,
I guess the column [Round] is sorted by [Round index] column.
Please try the below whether it suits your requirement.
Amt_previous round =
VAR preroundindex =
SELECTEDVALUE ( 'Table 1'[Round index] ) - 1
RETURN
CALCULATE (
SUM ( 'Table 1'[Amt] ),
FILTER ( ALL ( 'Table 1' ), 'Table 1'[Round index] = preRoundselected )
)
Hi,
I guess the column [Round] is sorted by [Round index] column.
Please try the below whether it suits your requirement.
Amt_previous round =
VAR preroundindex =
SELECTEDVALUE ( 'Table 1'[Round index] ) - 1
RETURN
CALCULATE (
SUM ( 'Table 1'[Amt] ),
FILTER ( ALL ( 'Table 1' ), 'Table 1'[Round index] = preRoundselected )
)
Thanks so much for your support
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 48 | |
| 35 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 134 | |
| 110 | |
| 59 | |
| 39 | |
| 32 |