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,
I have a table called "Fees"
I'm using the below DAX formula to get the FeeAmount
FeeAmount :=
CALCULATE (
SUMX (
SUMMARIZE (
Fees,
Fees[Report_Date],
Fees[Employee_ID],
Fees[Record_No],
Fees[CreditAmount]
),
Fees[CreditAmount]
),
Fees[creditname] = "FeeAmount"
)
WORKS FINE!
I also have a TRUE/FALSE column "STATUS"
I want to include this TRUE/FALSE CONDITION
How can I use IF CONDITION for the above DAX formula
EXAMPLE:
FeeAmount :=
IF (
Fees[STATUS] = TRUE,
CALCULATE (
SUMX (
SUMMARIZE (
Fees,
Fees[Report_Date],
Fees[Employee_ID],
Fees[Record_No],
Fees[CreditAmount]
),
Fees[CreditAmount]
),
Fees[creditname] = "FeeAmount"
)
)
This is NOT WORKING
Please let me know how to include IF CONDITION for the above DAX
Solved! Go to Solution.
I believe what you want is:
CALCULATE (
SUMX (
SUMMARIZE (
Fees,
Fees[Report_Date],
Fees[Employee_ID],
Fees[Record_No],
Fees[CreditAmount]
),
Fees[CreditAmount]
),
Fees[creditname] = "FeeAmount", Fees[STATUS] = TRUE
)
I believe what you want is:
CALCULATE (
SUMX (
SUMMARIZE (
Fees,
Fees[Report_Date],
Fees[Employee_ID],
Fees[Record_No],
Fees[CreditAmount]
),
Fees[CreditAmount]
),
Fees[creditname] = "FeeAmount", Fees[STATUS] = TRUE
)
Thanks
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 63 | |
| 62 | |
| 42 | |
| 19 | |
| 16 |
| User | Count |
|---|---|
| 113 | |
| 105 | |
| 36 | |
| 28 | |
| 28 |