The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All,
Kindly assist me write a calculated column in my date table that will return latest month true. i will use this as a filter in my report to return values for only lastest month in my visuals. Below is a **bleep** of my date table.
Thanks for the help.
Solved! Go to Solution.
Hello @Selded ,
You can use this calculated column:
Latest month =
IF (DATE(YEAR(TODAY()), MONTH(TODAY()) - 1, 1) = STARTOFMONTH('Date'[Date]), "Latest Month")
Current month =
IF (DATE(YEAR(TODAY()), MONTH(TODAY()), 1) = STARTOFMONTH('Date'[Date]), "Current Month")
_______________
If I helped, please accept the solution and give congratulations! 😀
@Selded , Hope I get it correctly. You need to add a column like this in the date table
Month Type = Switch( True(),
Date([Date]) = eomonth(Today(),-1),"Last Month" , //Last Month
Date([Date])= eomonth(Today(),0),"This Month" , //This Month
[Month Year]
)
Hello @Selded ,
You can use this calculated column:
Latest month =
IF (DATE(YEAR(TODAY()), MONTH(TODAY()) - 1, 1) = STARTOFMONTH('Date'[Date]), "Latest Month")
Current month =
IF (DATE(YEAR(TODAY()), MONTH(TODAY()), 1) = STARTOFMONTH('Date'[Date]), "Current Month")
_______________
If I helped, please accept the solution and give congratulations! 😀
User | Count |
---|---|
80 | |
73 | |
39 | |
30 | |
28 |
User | Count |
---|---|
107 | |
99 | |
55 | |
49 | |
46 |