Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi! I would like to create a new table that summarizes Prod. and Cust. depending on last Date (for both Prod. and Cust).
Please see an example below.
For the second Prod. there is the same date for different Cust. that's why I thought to use FirstNonBlank.
| Prod. | Cust. | Date |
| 1 | a | dt1 |
| 1 | a | dt2 |
| 1 | b | dt3 |
| 2 | a | dt1 |
| 2 | a | dt4 |
| 2 | c | dt4 |
Desired result in New Table:
| Prod. | Cust. | Date (max) |
| 1 | b | dt3 |
| 2 | a | dt4 |
Could anyone please help me? Many thanks in advance, Kind regards, est gas
Solved! Go to Solution.
Hi @estgas
Go to Modelling Tab>>>>NEW TABLE
New Table =
SUMMARIZE (
TableName,
TableName[Prod.],
"Last Date", MAX ( TableName[Date] ),
"Last Date Customers", CALCULATE (
FIRSTNONBLANK ( TableName[Cust.], TableName[Cust.] ),
FILTER ( TableName, TableName[Date] = MAX ( TableName[Date] ) )
)
)
Hi @estgas
Go to Modelling Tab>>>>NEW TABLE
New Table =
SUMMARIZE (
TableName,
TableName[Prod.],
"Last Date", MAX ( TableName[Date] ),
"Last Date Customers", CALCULATE (
FIRSTNONBLANK ( TableName[Cust.], TableName[Cust.] ),
FILTER ( TableName, TableName[Date] = MAX ( TableName[Date] ) )
)
)
Many Thank Zubair! Exactly what I was looking for!
By the way I replaced SUMMARIZE with SUMMARIZECOLUMNS assuming that is preferred according to conclusion of https://www.sqlbi.com/articles/introducing-summarizecolumns/
HI @estgas
Yes I believe
SummarizeColumns
or
combination of Summarize with AddColumns
is much faster than mere Summarize
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 32 | |
| 27 | |
| 26 |