Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi.
I have calculated measure from column E to J and A to D are the values from DB
(attached screenshot for quick view
and I required row no 14 to 17 ( Avg of 7D,30D,60D and MTD)
typo error --> its 60D and not 90D in the screenshot
)
Solved! Go to Solution.
For your reference.
Step 1: I make a calendar table.
Step 2: I add a relationship.
Step 3: I make these measures for the 'Start' column.
Last 7D AVG_Start = CALCULATE(AVERAGE('DATA'[Start]),DATESBETWEEN('Calendar'[Date],TODAY()-6,TODAY()))
Last 30D AVG_Start = CALCULATE(AVERAGE('DATA'[Start]),DATESBETWEEN('Calendar'[Date],TODAY()-29,TODAY()))
Last 60D AVG_Start = CALCULATE(AVERAGE('DATA'[Start]),DATESBETWEEN('Calendar'[Date],TODAY()-59,TODAY()))
MTD AVG_Start = CALCULATE(AVERAGE('DATA'[Start]),DATESBETWEEN('Calendar'[Date],DATE(YEAR(TODAY()),MONTH(TODAY()),1),TODAY()))
Step 4: I make other measures for other columns.
For your reference.
Step 1: I make a calendar table.
Step 2: I add a relationship.
Step 3: I make these measures for the 'Start' column.
Last 7D AVG_Start = CALCULATE(AVERAGE('DATA'[Start]),DATESBETWEEN('Calendar'[Date],TODAY()-6,TODAY()))
Last 30D AVG_Start = CALCULATE(AVERAGE('DATA'[Start]),DATESBETWEEN('Calendar'[Date],TODAY()-29,TODAY()))
Last 60D AVG_Start = CALCULATE(AVERAGE('DATA'[Start]),DATESBETWEEN('Calendar'[Date],TODAY()-59,TODAY()))
MTD AVG_Start = CALCULATE(AVERAGE('DATA'[Start]),DATESBETWEEN('Calendar'[Date],DATE(YEAR(TODAY()),MONTH(TODAY()),1),TODAY()))
Step 4: I make other measures for other columns.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
92 | |
83 | |
71 | |
49 |
User | Count |
---|---|
143 | |
120 | |
110 | |
59 | |
57 |