Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 13 | |
| 10 | |
| 8 |