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.
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
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 |
---|---|
109 | |
105 | |
88 | |
75 | |
67 |
User | Count |
---|---|
123 | |
112 | |
96 | |
82 | |
72 |