This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi All,
I have a Date field in my table.
I have to create a new column based on date field.
Logic: If date=today's date then it have to populate dates starting from April till today's date.
Ex: Toda's Date=19/05/2021 then it have to populate dates starting from 01/04/2021 till 19/05/2021.
Thanks in advance.
Solved! Go to Solution.
Hi @Anonymous ,
What's the expected result, Something like below?
Column = IF('Table'[date]>TODAY()||'Table'[date]<DATE(2021,4,1),BLANK(),'Table'[date])
Best Regards,
Jay
Hi @Anonymous ,
What's the expected result, Something like below?
Column = IF('Table'[date]>TODAY()||'Table'[date]<DATE(2021,4,1),BLANK(),'Table'[date])
Best Regards,
Jay
@Anonymous , you can not do it in column you can create table of dates
New Table =
var _month = month(Today())
var _year = if(_month <4, year(Today())-1, year(Today()))
var _st = date(_year,4,1)
return
calendar(_st, today())
Hi Amit,
Thanks for your response.
From my end a small correction in logic:
If today's Date=19/05/2021
then it have to populate dates starting from 01/04/2020 till 19/05/2020.
Do we have any alternative approach to arrive it as column instead of table.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 23 | |
| 21 | |
| 18 | |
| 17 |
| User | Count |
|---|---|
| 62 | |
| 35 | |
| 34 | |
| 24 | |
| 24 |