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.
I have a table like below
date | value |
12-01-2020 | 1 |
18-03-2020 | 2 |
24-03-2020 | 3 |
I want to create the below table for my caluclations ,i would like to ignore all dates with in a month which have more than one date expect the one with highest date
date | value |
12-01-2020 | 1 |
24-03-2020 | 3 |
@mgwena @cham @amitchandak @Greg_Deckler @Mariusz
Solved! Go to Solution.
Hi @Truelearner ,
If you want to create a measure to implement it, you could try like this:
Month = MONTH('Table'[date])
Measure =
CALCULATE (
MAX ( 'Table'[value] ),
FILTER ( ALL ( 'Table' ), 'Table'[Month] = MAX ( 'Table'[Month] ) )
)
Hi @Truelearner ,
If you want to create a measure to implement it, you could try like this:
Month = MONTH('Table'[date])
Measure =
CALCULATE (
MAX ( 'Table'[value] ),
FILTER ( ALL ( 'Table' ), 'Table'[Month] = MAX ( 'Table'[Month] ) )
)
Perhaps create a month year column like:
MonthYear = YEAR([date]) * 100 + MONTH([date])
Table =
SELECTCOLUMNS(
GROUPBY(
'Table',
[MonthYear],
"date",MAXX(CURRENTGROUP(),[date])
"value",[value]
)
"date",[date],
"value",[value]
)
Thanks for taking time , its not working
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 |
---|---|
115 | |
100 | |
88 | |
68 | |
61 |
User | Count |
---|---|
152 | |
120 | |
102 | |
87 | |
68 |