Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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 |
---|---|
81 | |
79 | |
59 | |
35 | |
34 |
User | Count |
---|---|
100 | |
62 | |
56 | |
47 | |
41 |