The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
hello,
i need to create a measure to calculate total orders in the same selected week last month
for example if i selected from the date slicer period ( jan13->jan19) i want the measure to calculate the total orders
for the period (Dec16->Dec22) which is in the last month
Hello @lawada
Try this formula in a measure not column:
Measure =
SUMX(
DATEADD(Table[Date],-28,DAY),
[Amount]
)
User | Count |
---|---|
17 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
9 | |
8 |