We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi.
I have a dates column. I need a dax formula that indicates the last day with an 1 and when this day is Sunday, that day doesnt count.
Thanks.
| FECHA | Last Day |
| Sunday, March 1, 2020 | 0 |
| Monday, March 2, 2020 | 0 |
| Tuesday, March 3, 2020 | 0 |
| Wednesday, March 4, 2020 | 0 |
| Thursday, March 5, 2020 | 0 |
| Friday, March 6, 2020 | 0 |
| Saturday, March 7, 2020 | 1 |
| Sunday, March 8, 2020 | 0 |
Solved! Go to Solution.
Hi @jsim100
Try this code to add a column
Last Day =
VAR __lastday = MAXX(FILTER('Table',WEEKDAY('Table'[Date],2)<7),'Table'[Date])
RETURN
IF('Table'[Date] = __lastday,1,0)
Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.
Hi @jsim100
Try this code to add a column
Last Day =
VAR __lastday = MAXX(FILTER('Table',WEEKDAY('Table'[Date],2)<7),'Table'[Date])
RETURN
IF('Table'[Date] = __lastday,1,0)
Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 6 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 7 | |
| 7 | |
| 6 |