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.
Hi All,
Thank you for your help as always.
Price on my price table contains both historical and forecast. I want to divide them into two columns by month/year.
For example, today is 14 Mar 2020.
Data till end of Mar 2020 = Historical column
Data from Apr 2020 = Forecast column
Apprecaite if you can help!
All the best,
Paris
Solved! Go to Solution.
@paris ,
Try New columns in the price table
Historical =
var _Max = EOmonth(today(),0)
return
if([date]<=_Max ,[Price],blank())
forecast =
var _Max = EOmonth(today(),0)
return
if([date]>_Max ,[Price],blank())
Appreciate your Kudos.
@paris ,
Try New columns in the price table
Historical =
var _Max = EOmonth(today(),0)
return
if([date]<=_Max ,[Price],blank())
forecast =
var _Max = EOmonth(today(),0)
return
if([date]>_Max ,[Price],blank())
Appreciate your Kudos.
Hello Amitchandak,
Thank you very much for your help. It seems I need to add ,0 after today().
Otherwise, it works perfectly. Thank you again.
EOMONTH(today(),0)
All the best,
Paris
@paris , Thanks for pointing out. Corrected the post for anyone who looks for a similar solution. Kudos !!
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 | |
83 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |