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! Get ahead of the game and start preparing now! Learn more
Pease give DAX for =-SUMIF(Details!B:B;'Cash Flow'!G34;Details!G:G)+4801. I have
Hi @Yrstruly2021 ,
You can try formula like below:
DebtorMovements =
CALCULATE(
-SUMX(
FILTER(
'ZTBR',
'ZTBR'[Roll_Up_Function] = "Debtor Movements"
),
'ZTBR'[Amount in USD]
),
'ZTBR'[Roll_Up_Function] = "Debtor Movements"
) + 4801
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi ,
Can you try like this?
DebtorMovements =
CALCULATE (
- SUM ( 'ZTBR'[Amount in USD] ),
KEEPFILTERS ( 'ZTBR'[Roll_Up_Function] IN { "Debtor Movements" } )
) + 4801In your formula, it overwrites the existing filters (inc. filter context) and calculates the value. When you use KEEPFILTERS it respects the filter context.
For more info: https://www.sqlbi.com/articles/using-keepfilters-in-dax/
It is not suppose to list values for every row.
Try this:
DebtorMovements=
IF (
SELECTEDVALUE('ZTBR'[Roll_Up_Function])="Debtor Movements",
CALCULATE (-SUM ('ZTBR'[Amount in USD]),'ZTBR'[Roll_Up_Function]="Debtor Movements")+4801,
BLANK()
)
This code eliminate the assigned values to rows that shoul not have these values, but it does not give me the total like the other codes does.
Hi @Yrstruly2021 ,
Please try this:
DebtorMovements=
IF(
HASONEVALUE('ZTBR'[Roll_Up_Function]),
IF (
SELECTEDVALUE('ZTBR'[Roll_Up_Function])="Debtor Movements",
CALCULATE (-SUM ('ZTBR'[Amount in USD]),'ZTBR'[Roll_Up_Function]="Debtor Movements")+4801,
BLANK()
),
CALCULATE (-SUM ('ZTBR'[Amount in USD]),'ZTBR'[Roll_Up_Function]="Debtor Movements")+4801
)
Upvote and accept as solution if this helped!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 33 | |
| 31 | |
| 19 | |
| 12 | |
| 11 |