Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
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
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 63 | |
| 49 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 121 | |
| 118 | |
| 38 | |
| 36 | |
| 29 |