The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 }
)
User | Count |
---|---|
14 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
28 | |
19 | |
14 | |
8 | |
5 |