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
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 35 | |
| 33 | |
| 32 | |
| 27 |
| User | Count |
|---|---|
| 136 | |
| 96 | |
| 77 | |
| 67 | |
| 65 |