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.
Hi All,
I am trying to compare this month till date purchase amount with last month ( same no of days) in Power BI.
The below are the queries for MTD and LMTD :
MTD:
PurchaseAmount_MTD = Calculate(SUM(Schedule[ESC_PURCHASE_AMOUNT]),DATESMTD('Date'[Date]))
LMTD:
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
21 | |
12 | |
10 | |
7 |