Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi folks,
I am having some hard times with SUMMARIZE().
I have a dataset with 3 columns: ID, Date and Value
Original Dataset
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:
Actual Dataset
However, it was suppose to get the following:
ToBe Dataset
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!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
76 | |
55 | |
35 | |
34 |
User | Count |
---|---|
99 | |
56 | |
53 | |
44 | |
40 |