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!View all the Fabric Data Days sessions on demand. View schedule
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.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!