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 August 31st. Request your voucher.
Hi
I have a data table which contains column headers Fiscal Year, Net revenue. Data is available for July-18 and Jul-19 in the same table,How do I get subtotals for each fiscal year as measure by using DAX.
Hi sayantan4336,
I hope this formula will help for you:
Previous year=CALCULATE(SUM(netrevenue column, PREVIOUSYEAR('DateTime'[DateKey]))
Current year=CALCULATE(SUM(netrevenue column,YEAR('datetime[datekey]=YEAR(TODAY()))
Cheers,
Pratima
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
34 | |
15 | |
12 | |
7 | |
6 |