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
Hello,
I have a table with 2 columns.. Type and Value
Measure 1:
toPay =
CALCULATE(
SUM(PAYMENTS[value]),
PAYMENTS[type] = "pay"
)
Measure 2:
toReceive =
CALCULATE(
SUM(PAYMENTS[value]),
PAYMENTS[type] = "receive"
)
The table is reapeating values for pay and receive, why?
I think this solution is:
Solved! Go to Solution.
@marcio_fornari , Try like
toPay =
CALCULATE(
SUM(PAYMENTS[value]),
filter(PAYMENTS, PAYMENTS[type] = "pay")
)
toReceive =
CALCULATE(
SUM(PAYMENTS[value]),
filter(PAYMENTS,PAYMENTS[type] = "receive")
)
refer : dataap.org/blog/2019/04/22/difference-between-calculate-with-and-without-filter-expression/
@marcio_fornari , Try like
toPay =
CALCULATE(
SUM(PAYMENTS[value]),
filter(PAYMENTS, PAYMENTS[type] = "pay")
)
toReceive =
CALCULATE(
SUM(PAYMENTS[value]),
filter(PAYMENTS,PAYMENTS[type] = "receive")
)
refer : dataap.org/blog/2019/04/22/difference-between-calculate-with-and-without-filter-expression/
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 31 | |
| 28 | |
| 19 | |
| 11 | |
| 10 |