Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi!
I would like to filter the column that is selected, to view the last date/month registered for each year with Dax.
Thanks!
Solved! Go to Solution.
Hi @a-santiago ,
Please try below steps:
1. below is my test table
Table:
2. add a new column with below dax formula
Last date of year =
VAR cur_date = [Date]
VAR cur_year =
YEAR ( [Date] )
VAR tmp =
FILTER ( 'Table', YEAR ( 'Table'[Date] ) = cur_year )
RETURN
FORMAT ( MAXX ( tmp, [Date] ), "mmm yy" )
Palease refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @a-santiago ,
Please try below steps:
1. below is my test table
Table:
2. add a new column with below dax formula
Last date of year =
VAR cur_date = [Date]
VAR cur_year =
YEAR ( [Date] )
VAR tmp =
FILTER ( 'Table', YEAR ( 'Table'[Date] ) = cur_year )
RETURN
FORMAT ( MAXX ( tmp, [Date] ), "mmm yy" )
Palease refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@a-santiago , flag for the last date of the year
last date of year = if([Date] = eomonth([Date], 12- month([Date]) ) , 1,0)
hI!
This doesn't work:
The column I want to filter is YTD_MONTH in SNAP table and its date type: mmm yy .
The filter just shows "0" -->
Any more info I can provide?
Thanks!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |