The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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
User | Count |
---|---|
82 | |
82 | |
37 | |
34 | |
32 |
User | Count |
---|---|
92 | |
79 | |
61 | |
51 | |
51 |