Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 55 | |
| 48 | |
| 38 | |
| 16 | |
| 15 |
| User | Count |
|---|---|
| 85 | |
| 70 | |
| 38 | |
| 28 | |
| 25 |