Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi folks,
I am having some hard times with SUMMARIZE().
I have a dataset with 3 columns: ID, Date and Value
I am trying to create a new table using the SUMMARIZE() function, as the following:
TopDate = SUMMARIZE('Static', 'Static'[ID], "MaxDate", MAX('Static'[Date]), "NewValue", FIRSTNONBLANK('Static'[Value], MAX('Static'[Date])))
It is returning the following dataset:
However, it was suppose to get the following:
Anyone have an idea why am I getting the values from a sorted order, even if I am choosing FIRSTNONBLANK() from MAX('Static'[Date])?
Thanks,
Solved! Go to Solution.
HI @Borghi
Try using this
TopDate = SUMMARIZE ( 'Static', 'Static'[ID], "MaxDate", MAX ( 'Static'[Date] ), "NewValue", CALCULATE ( FIRSTNONBLANK ( 'Static'[Value], 1 ), LASTDATE ( 'Static'[Date] ) ) )
HI @Borghi
Try using this
TopDate = SUMMARIZE ( 'Static', 'Static'[ID], "MaxDate", MAX ( 'Static'[Date] ), "NewValue", CALCULATE ( FIRSTNONBLANK ( 'Static'[Value], 1 ), LASTDATE ( 'Static'[Date] ) ) )
Thanks so much. It works fine!
User | Count |
---|---|
128 | |
109 | |
100 | |
65 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |