March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have a date table and I need to create a Calculated Column for date values that are within this month and last month. For example, today is 06-21, so I need that date would be displayed from TODAY till 05-01. Other values should be BLANK. As the data refreshes, I need the fact of 2 months to move also. So if the date is 07-21, I need it till 06-01. IF in DAX should work somehow, but I was unable to write it correctly. I attached a photo of the example below.
Thank you.
Solved! Go to Solution.
You could create a column like
New Column =
var startDate = EOMONTH(TODAY(), -2) + 1
return IF( 'Date'[Date] >= startDate && 'Date'[Date] <= TODAY(), 'Date'[Date])
You could create a column like
New Column =
var startDate = EOMONTH(TODAY(), -2) + 1
return IF( 'Date'[Date] >= startDate && 'Date'[Date] <= TODAY(), 'Date'[Date])
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
163 | |
116 | |
63 | |
58 | |
50 |