Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I have a calendar table that generates from oct 1 2019 to current day.
Is there a formula i could write to add a column showing the latest date in each month (0/1 values). For example, column would have a 1 on oct 31, 1 on nov 30, etc. but also have a 1 on feb 14, then tomorrow it would move to feb 15, etc...
Thanks
Solved! Go to Solution.
Hi @thampton ,
Try the following calculated column:
Column =
SWITCH (
TRUE ();
'Calendar'[Date] = EOMONTH ( 'Calendar'[Date]; 0 )
|| 'Calendar'[Date] = TODAY (); 1;
0
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @thampton ,
Try the following calculated column:
Column =
SWITCH (
TRUE ();
'Calendar'[Date] = EOMONTH ( 'Calendar'[Date]; 0 )
|| 'Calendar'[Date] = TODAY (); 1;
0
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsTry Like a new column like
Column =
var _max= maxx(date,date[date])
Return
if(date[date]=eomonth(date[date]) || date[date] =_max,1,0)
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 53 | |
| 48 | |
| 35 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 93 | |
| 79 | |
| 37 | |
| 27 | |
| 25 |