Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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/
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
24 | |
20 | |
15 | |
12 |
User | Count |
---|---|
55 | |
48 | |
43 | |
19 | |
19 |