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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I have an OrderLines tables with a Revenue column. I also have a Calendar table with FinancialYear, and a Route table with RouteNo (certain orders are delivered by certain routes). What I'm wanting to do is sum the Revenue for a specific Financial Year and also specific Route Nos. Here is what I've tried:
Solved! Go to Solution.
Hi @hcr4
It depends on your data model but in general it can and it should. Not sure if the formula that you shared is exactly as what you've been trying or is just a short syntax but the syntax this way is wrong. Please try
RevenueSum =
CALCULATE (
SUM ( OrderLines[Revenue] ),
'Calendar'[FinancialYear] = 2021,
'Route'['RouteNo] IN { 160, 161, 162 }
)
Hi @hcr4
It depends on your data model but in general it can and it should. Not sure if the formula that you shared is exactly as what you've been trying or is just a short syntax but the syntax this way is wrong. Please try
RevenueSum =
CALCULATE (
SUM ( OrderLines[Revenue] ),
'Calendar'[FinancialYear] = 2021,
'Route'['RouteNo] IN { 160, 161, 162 }
)