Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi Team,
I have grouped the data at the EmployeeNumber level, and I have the transaction code and its value in separate columns.
However, when I try to run the following expression to sum the transaction amounts for records where the transaction type is "NRT":
I am encountering an error in the report.
below is database
Hi,
Not sure what you are trying to do but try this measure
Measure = calculate(sum(Fields!TxnAmount.Value),Fields!TxnTypeCode.Value="NRT")
Hope this helps.
Hi @Anonymous
I have tried it and it didnt work. Still facing same issue
Hi, @Aartibhilare
It looks like there is a small syntax error in your expression. Here is the corrected expression:
=Sum(IIf(Fields!TxnTypeCode.Value = "NRT", Fields!TxnAmount.Value, 0), "EmployeeNumber")
Please check if it solves your problem?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.