Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Below is my avaiable dataset. My dataset contains the product details with date field with has all the month end dates alone.
I need to create the below highlighted calculated column "Previous Amount" which takes the amount field of the previous month end date and populates.
How to do it ? Product Name and Facility Type are combined to be unique identifier.
Solved! Go to Solution.
@Ramees_123 , for a new column
New column =
var _prd = [product name]
var _typ = [facility Type]
var _pd = [previous date]
return
sumx(filter(Table, [product name] = _prd && [facility Type] =_typ && [Date] =_pd), Amount)
For measure use date table and create measures like
MTD Sales = CALCULATE(SUM(Table[Amount]),DATESMTD('Date'[Date]))
last MTD Sales = CALCULATE(SUM(Table[Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
@Ramees_123 , for a new column
New column =
var _prd = [product name]
var _typ = [facility Type]
var _pd = [previous date]
return
sumx(filter(Table, [product name] = _prd && [facility Type] =_typ && [Date] =_pd), Amount)
For measure use date table and create measures like
MTD Sales = CALCULATE(SUM(Table[Amount]),DATESMTD('Date'[Date]))
last MTD Sales = CALCULATE(SUM(Table[Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |